fw4spl
|
This class contains helpers to handle GDCM data. It implements many tag value getters/setters. It defines also some tools for converting GDCM data to FW4SPL data. More...
#include <DicomDataTools.hpp>
Static Public Member Functions | |
static FWGDCMIO_APIconst::gdcm::PixelFormat | getPixelType (const ::fwData::Image::csptr &image) |
Return the pixel type of a fwData Image. More... | |
static FWGDCMIO_APIconst::gdcm::PhotometricInterpretation | getPhotometricInterpretation (const ::fwData::Image::csptr &image) |
Return the photometric interpretation of an acquisition. More... | |
static FWGDCMIO_API::gdcm::Surface::VIEWType | convertToPresentationType (::fwData::Material::RepresentationType representationMode) |
Convert a surface representation mode (FW4SPL) into recommended presentation type (DICOM). More... | |
static FWGDCMIO_API::fwData::Material::RepresentationType | convertToRepresentationMode (::gdcm::Surface::VIEWType presentationType) |
Convert a surface recommended presentation type (DICOM) into representation mode (FW4SPL). More... | |
static FWGDCMIO_API std::size_t | convertPointToFrameNumber (const ::fwData::Image::csptr &image, const ::fwData::Point::csptr &point) throw (::fwGdcmIO::exception::Failed) |
Convert a 3D point to the closest frame number index. More... | |
static FWGDCMIO_API double | convertFrameNumberToZCoordinate (const ::fwData::Image::csptr &image, const std::size_t frameNumber) throw (::fwGdcmIO::exception::Failed) |
Convert a frame number to a Z coordinate. More... | |
This class contains helpers to handle GDCM data. It implements many tag value getters/setters. It defines also some tools for converting GDCM data to FW4SPL data.
Definition at line 31 of file DicomDataTools.hpp.
|
static |
Convert a frame number to a Z coordinate.
[in] | image | Image containing the point |
[in] | frameNumber | Frame number |
Definition at line 152 of file DicomDataTools.cpp.
Referenced by fwGdcmIO::reader::ie::SpatialFiducials::readLandmark(), fwGdcmIO::reader::tid::Fiducial::readNode(), and fwGdcmIO::reader::tid::Measurement::readNode().
|
static |
Convert a 3D point to the closest frame number index.
[in] | image | Image containing the point |
[in] | point | 3D point |
Definition at line 129 of file DicomDataTools.cpp.
Referenced by fwGdcmIO::helper::Fiducial::contains3DDistances(), fwGdcmIO::writer::tid::Fiducial::createFiducial(), fwGdcmIO::writer::tid::Measurement::createMeasurement(), and fwGdcmIO::writer::ie::SpatialFiducials::writeLandmarks().
|
static |
Convert a surface representation mode (FW4SPL) into recommended presentation type (DICOM).
[in] | representationMode | Surface representation mode. |
Definition at line 85 of file DicomDataTools.cpp.
References SLM_WARN.
Referenced by fwGdcmIO::writer::ie::Surface::writeSurfaceSequence().
|
static |
Convert a surface recommended presentation type (DICOM) into representation mode (FW4SPL).
[in] | presentationType | Surface recommended presentation type. |
Definition at line 107 of file DicomDataTools.cpp.
References SLM_WARN.
Referenced by fwGdcmIO::reader::ie::Surface::readSurfaceMeshModule().
|
static |
Return the photometric interpretation of an acquisition.
[in] | image | Image |
Definition at line 57 of file DicomDataTools.cpp.
References SLM_ERROR.
Referenced by fwGdcmIO::writer::ie::Image::writeImagePixelModule().
|
static |
Return the pixel type of a fwData Image.
[in] | image | Image of fwData |
Definition at line 44 of file DicomDataTools.cpp.
Referenced by fwGdcmIO::reader::ie::Image::readImageBuffer(), fwGdcmIO::reader::ie::Image::readImagePixelModule(), and fwGdcmIO::writer::ie::Image::writeImagePixelModule().