fw4spl
|
Image Information Entity class. More...
#include <Image.hpp>
Public Member Functions | |
FWGDCMIO_API | Image (const std::shared_ptr< const ::fwMedData::DicomSeries > &dicomSeries, const std::shared_ptr< ::gdcm::Reader > &reader, const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > &instance, const ::fwData::Image::sptr &image, const ::fwLog::Logger::sptr &logger=nullptr, ProgressCallback progress=nullptr, CancelRequestedCallback cancel=nullptr) |
Constructor. More... | |
virtual FWGDCMIO_API | ~Image () |
Destructor. | |
virtual FWGDCMIO_API void | readImagePlaneModule () |
Read Image Plane Module tags. More... | |
virtual FWGDCMIO_API void | readImagePixelModule () |
Read Image Pixel Module tags. More... | |
virtual FWGDCMIO_API void | readVOILUTModule () |
Read VOI LUT Module tags. More... | |
void | setBufferRotationEnabled (bool enabled) |
Enable buffer rotation. | |
Public Member Functions inherited from fwGdcmIO::reader::ie::InformationEntity< ::fwData::Image > | |
FWGDCMIO_API | InformationEntity (const std::shared_ptr< const ::fwMedData::DicomSeries > &dicomSeries, const std::shared_ptr< ::gdcm::Reader > &reader, const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > &instance, const std::shared_ptr< ::fwData::Image > &object, const ::fwLog::Logger::sptr &logger=nullptr, const ProgressCallback progress=nullptr, CancelRequestedCallback cancel=nullptr) |
Constructor. More... | |
virtual FWGDCMIO_API | ~InformationEntity () |
Destructor. | |
Protected Types | |
typedef ::boost::numeric::ublas::matrix< double,::boost::numeric::ublas::row_major, std::vector< double > > | MatrixType |
typedef ::boost::numeric::ublas::vector< double > | VectorType |
Protected Member Functions | |
char * | readImageBuffer (const std::vector< unsigned int > &dimensions, const unsigned short bitsAllocated, const unsigned short newBitsAllocated, const bool performRescale) throw (::fwGdcmIO::exception::Failed) |
Read image buffer. More... | |
char * | correctImageOrientation (char *buffer, const std::vector< unsigned int > &dimensions, unsigned short bitsAllocated) |
Correct image buffer according to image orientation. More... | |
MatrixType | computeInverseMatrix (MatrixType matrix) |
Compute the inverse of matrix. More... | |
Protected Attributes | |
bool | m_enableBufferRotation |
Enable buffer rotation. | |
Protected Attributes inherited from fwGdcmIO::reader::ie::InformationEntity< ::fwData::Image > | |
std::shared_ptr< const ::fwMedData::DicomSeries > | m_dicomSeries |
Dicom Series. | |
std::shared_ptr< ::gdcm::Reader > | m_reader |
GDCM Reader. | |
std::shared_ptr< ::fwGdcmIO::container::DicomInstance > | m_instance |
DICOM Instance. | |
std::shared_ptr< ::fwData::Image > | m_object |
FW4SPL Object. | |
::fwLog::Logger::sptr | m_logger |
Logger. | |
ProgressCallback | m_progressCallback |
Progress callback for jobs. | |
CancelRequestedCallback | m_cancelRequestedCallback |
Cancel information for jobs. | |
Additional Inherited Members | |
Public Types inherited from fwGdcmIO::reader::ie::InformationEntity< ::fwData::Image > | |
typedef std::function< void(std::uint64_t) > | ProgressCallback |
typedef std::function< bool() > | CancelRequestedCallback |
Image Information Entity class.
Definition at line 26 of file io/fwGdcmIO/include/fwGdcmIO/reader/ie/Image.hpp.
FWGDCMIO_API fwGdcmIO::reader::ie::Image::Image | ( | const std::shared_ptr< const ::fwMedData::DicomSeries > & | dicomSeries, |
const std::shared_ptr< ::gdcm::Reader > & | reader, | ||
const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > & | instance, | ||
const ::fwData::Image::sptr & | image, | ||
const ::fwLog::Logger::sptr & | logger = nullptr , |
||
ProgressCallback | progress = nullptr , |
||
CancelRequestedCallback | cancel = nullptr |
||
) |
Constructor.
[in] | dicomSeries | DicomSeries used to access computed tag values. |
[in] | reader | GDCM reader that must be enriched |
[in] | instance | DICOM instance used to share informations between modules |
[in] | image | Image data |
[in] | logger | Logger |
[in] | progress | Progress callback |
[in] | cancel | Cancel requested callback |
|
protected |
Compute the inverse of matrix.
[in] | matrix | Matrix that must be inverted |
Definition at line 700 of file io/fwGdcmIO/src/fwGdcmIO/reader/ie/Image.cpp.
References SLM_WARN.
|
protected |
Correct image buffer according to image orientation.
[in,out] | buffer | Image buffer |
[in] | dimensions | Image dimensions |
[in] | bitsAllocated | Number of bits allocated before rescale |
Definition at line 504 of file io/fwGdcmIO/src/fwGdcmIO/reader/ie/Image.cpp.
References SPTR.
|
protected |
Read image buffer.
[in] | dimensions | Image dimensions |
[in] | bitsAllocated | Number of bits allocated before rescale |
[in] | newBitsAllocated | Number of bits allocated after rescale |
[in] | performRescale | Set to true when a rescale must be perfromed |
Definition at line 369 of file io/fwGdcmIO/src/fwGdcmIO/reader/ie/Image.cpp.
References fwGdcmIO::helper::DicomDataTools::getPixelType(), and SPTR.
|
virtual |
Read Image Pixel Module tags.
Definition at line 241 of file io/fwGdcmIO/src/fwGdcmIO/reader/ie/Image.cpp.
References fwDicomTools::Image::findImageTypeFromMinMaxValues(), fwGdcmIO::helper::DicomDataTools::getPixelType(), OSLM_TRACE, fwDataTools::helper::Array::setBuffer(), and SPTR.
|
virtual |
Read Image Plane Module tags.
Definition at line 118 of file io/fwGdcmIO/src/fwGdcmIO/reader/ie/Image.cpp.
References OSLM_TRACE, and SPTR.
|
virtual |
Read VOI LUT Module tags.
Definition at line 190 of file io/fwGdcmIO/src/fwGdcmIO/reader/ie/Image.cpp.
References OSLM_TRACE.