fw4spl
fwDcmtkIO::reader::main::ImageReader Class Reference

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...
 

Detailed Description

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.

Member Function Documentation

template<typename T , typename U >
static void fwDcmtkIO::reader::main::ImageReader::copyBuffer ( unsigned int  rows,
unsigned int  columns,
unsigned int  depth,
U *  source,
void *  destination,
double  rescaleSlope,
double  rescaleIntercept 
)
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.

Parameters
[in]rowsNumber of rows
[in]columnsNumber of columns
[in]depthNumber of frames
[in]sourceTemporary buffer
[in]destinationFinal image buffer
[in]rescaleSlopeSlope parameter
[in]rescaleInterceptIntercept parameter

Definition at line 269 of file fwDcmtkIO/include/fwDcmtkIO/reader/main/ImageReader.hpp.

template<typename T >
static T* fwDcmtkIO::reader::main::ImageReader::createTemporaryBuffer ( unsigned int  rows,
unsigned int  columns,
unsigned int  depth,
DicomContainerType &  instances 
)
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.

Parameters
[in]rowsNumber of rows
[in]columnsNumber of columns
[in]depthNumber of frames
[in]instancesPaths 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.

+ Here is the call graph for this function:

static void fwDcmtkIO::reader::main::ImageReader::fillImageBuffer ( unsigned int  rows,
unsigned int  columns,
unsigned int  depth,
DicomContainerType &  instances,
void *  destination,
double  rescaleSlope,
double  rescaleIntercept,
unsigned short  pixelRepresentation,
::fwTools::Type  imageType 
)
inlinestatic

Fill the buffer of an image.

Parameters
[in]rowsNumber of rows
[in]columnsNumber of columns
[in]depthNumber of frames
[in]instancesPaths to the instances
[in]destinationDestination buffer
[in]rescaleSlopeSlope parameter
[in]rescaleInterceptIntercept parameter
[in]pixelRepresentationPixel representation of the image (signed or unsigned short)
[in]imageTypeType 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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename T >
static void fwDcmtkIO::reader::main::ImageReader::fillImageBuffer ( unsigned int  rows,
unsigned int  columns,
unsigned int  depth,
DicomContainerType &  instances,
void *  destination,
double  rescaleSlope,
double  rescaleIntercept,
::fwTools::Type  imageType 
)
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.

Parameters
[in]rowsNumber of rows
[in]columnsNumber of columns
[in]depthNumber of frames
[in]instancesPaths to the instances
[in]destinationDestination buffer
[in]rescaleSlopeSlope parameter
[in]rescaleInterceptIntercept parameter
[in]imageTypeType of the image used to create the buffer

Definition at line 181 of file fwDcmtkIO/include/fwDcmtkIO/reader/main/ImageReader.hpp.


The documentation for this class was generated from the following file: