fw4spl
|
This class is used to read the buffer of a DICOM image in DIRECT mode. More...
#include <ImageReader.hpp>
Public Types | |
typedef ::fwMedData::DicomSeries::DicomContainerType | DicomContainerType |
Static Public Member Functions | |
static void | fillImageBuffer (unsigned int rows, unsigned int columns, unsigned int depth, DicomContainerType &instances, void *destination, double rescaleSlope, double rescaleIntercept, unsigned short pixelRepresentation,::fwTools::Type imageType) |
Fill the buffer of an image. More... | |
template<typename T > | |
static T * | createTemporaryBuffer (unsigned int rows, unsigned int columns, unsigned int depth, DicomContainerType &instances) |
Create the signed short or unsigned short temporary buffer used to fill the image buffer The template T is used to determine if we must use signed or unsigned short to create the buffer. More... | |
Static Protected Member Functions | |
template<typename T > | |
static void | fillImageBuffer (unsigned int rows, unsigned int columns, unsigned int depth, DicomContainerType &instances, void *destination, double rescaleSlope, double rescaleIntercept,::fwTools::Type imageType) |
Fill the buffer of an image The template T is used to determine if we must use signed or unsigned short when reading pixels. More... | |
template<typename T , typename U > | |
static void | copyBuffer (unsigned int rows, unsigned int columns, unsigned int depth, U *source, void *destination, double rescaleSlope, double rescaleIntercept) |
Copy the temporary buffer to the image buffer The template T is used to determine the type of the final image buffer The template U is used to determine the type of the temporary buffer. More... | |
This class is used to read the buffer of a DICOM image in DIRECT mode.
Definition at line 30 of file fwDcmtkIO/include/fwDcmtkIO/reader/main/ImageReader.hpp.
|
inlinestaticprotected |
Copy the temporary buffer to the image buffer The template T is used to determine the type of the final image buffer The template U is used to determine the type of the temporary buffer.
[in] | rows | Number of rows |
[in] | columns | Number of columns |
[in] | depth | Number of frames |
[in] | source | Temporary buffer |
[in] | destination | Final image buffer |
[in] | rescaleSlope | Slope parameter |
[in] | rescaleIntercept | Intercept parameter |
Definition at line 269 of file fwDcmtkIO/include/fwDcmtkIO/reader/main/ImageReader.hpp.
|
inlinestatic |
Create the signed short or unsigned short temporary buffer used to fill the image buffer The template T is used to determine if we must use signed or unsigned short to create the buffer.
[in] | rows | Number of rows |
[in] | columns | Number of columns |
[in] | depth | Number of frames |
[in] | instances | Paths to the instances |
Definition at line 95 of file fwDcmtkIO/include/fwDcmtkIO/reader/main/ImageReader.hpp.
References fwMemory::BufferObject::LockBase< T >::getBuffer(), and SLM_WARN.
|
inlinestatic |
Fill the buffer of an image.
[in] | rows | Number of rows |
[in] | columns | Number of columns |
[in] | depth | Number of frames |
[in] | instances | Paths to the instances |
[in] | destination | Destination buffer |
[in] | rescaleSlope | Slope parameter |
[in] | rescaleIntercept | Intercept parameter |
[in] | pixelRepresentation | Pixel representation of the image (signed or unsigned short) |
[in] | imageType | Type of the image used to create the buffer |
Definition at line 47 of file fwDcmtkIO/include/fwDcmtkIO/reader/main/ImageReader.hpp.
References fwTools::Type::sizeOf().
Referenced by fwDcmtkIO::reader::ImageStorageReader::directRead().
|
inlinestaticprotected |
Fill the buffer of an image The template T is used to determine if we must use signed or unsigned short when reading pixels.
[in] | rows | Number of rows |
[in] | columns | Number of columns |
[in] | depth | Number of frames |
[in] | instances | Paths to the instances |
[in] | destination | Destination buffer |
[in] | rescaleSlope | Slope parameter |
[in] | rescaleIntercept | Intercept parameter |
[in] | imageType | Type of the image used to create the buffer |
Definition at line 181 of file fwDcmtkIO/include/fwDcmtkIO/reader/main/ImageReader.hpp.