9 #include "fwGdcmIO/exception/Failed.hpp" 10 #include "fwGdcmIO/reader/ie/InformationEntity.hpp" 12 #include <fwData/Image.hpp> 14 #include <boost/numeric/ublas/matrix.hpp> 41 const SPTR(::gdcm::Reader)& reader,
43 const ::fwData::Image::sptr& image,
44 const ::fwLog::Logger::sptr& logger =
nullptr,
45 ProgressCallback progress =
nullptr,
46 CancelRequestedCallback cancel =
nullptr);
49 FWGDCMIO_API
virtual ~Image();
55 FWGDCMIO_API
virtual void readImagePlaneModule();
61 FWGDCMIO_API
virtual void readImagePixelModule();
67 FWGDCMIO_API
virtual void readVOILUTModule();
72 m_enableBufferRotation = enabled;
77 typedef ::boost::numeric::ublas::matrix< double, ::boost::numeric::ublas::row_major,
78 std::vector<double> > MatrixType;
79 typedef ::boost::numeric::ublas::vector< double > VectorType;
89 char* readImageBuffer(
const std::vector<unsigned int>& dimensions,
90 const unsigned short bitsAllocated,
91 const unsigned short newBitsAllocated,
100 char* correctImageOrientation(
char* buffer,
const std::vector<unsigned int>& dimensions,
101 unsigned short bitsAllocated);
107 MatrixType computeInverseMatrix(MatrixType matrix);
void setBufferRotationEnabled(bool enabled)
Enable buffer rotation.
This class defines a DICOM SOP instance. It is useful during the whole writing process. This class allows to share data between module writers.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
Image Information Entity class.
Implements a failed exception class for fwGdcmIO.
bool m_enableBufferRotation
Enable buffer rotation.