fw4spl
fwDcmtkIO::reader::main::ImageLazyReader Class Reference

This class is used to read the buffer of a DICOM image in LAZY mode. More...

#include <ImageLazyReader.hpp>

Static Public Member Functions

static FWDCMTKIO_API void * createInstanceBuffer (unsigned int rows, unsigned int columns, const ::fwMemory::BufferObject::sptr &instance, double rescaleSlope, double rescaleIntercept, unsigned short pixelRepresentation,::fwTools::Type imageType)
 Create an instance buffer according to the image type. More...
 

Static Protected Member Functions

template<typename T >
static FWDCMTKIO_API void * createInstanceBuffer (unsigned int rows, unsigned int columns, const ::fwMemory::BufferObject::sptr &instance, double rescaleSlope, double rescaleIntercept,::fwTools::Type imageType)
 Create an instance buffer according to the image type. 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 FWDCMTKIO_API U * createInstanceBuffer (unsigned int rows, unsigned int columns, const ::fwMemory::BufferObject::sptr &instance, double rescaleSlope, double rescaleIntercept)
 Create an instance buffer according to the image type. The template T is used to determine if we must use signed or unsigned short when reading pixels. The template U is used to determine what kind of buffer must be created. More...
 

Detailed Description

This class is used to read the buffer of a DICOM image in LAZY mode.

Definition at line 33 of file ImageLazyReader.hpp.

Member Function Documentation

static FWDCMTKIO_API void* fwDcmtkIO::reader::main::ImageLazyReader::createInstanceBuffer ( unsigned int  rows,
unsigned int  columns,
const ::fwMemory::BufferObject::sptr &  instance,
double  rescaleSlope,
double  rescaleIntercept,
unsigned short  pixelRepresentation,
::fwTools::Type  imageType 
)
inlinestatic

Create an instance buffer according to the image type.

Parameters
[in]rowsNumber of rows
[in]columnsNumber of columns
[in]instancePath to the instance
[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 46 of file ImageLazyReader.hpp.

References fwTools::Type::sizeOf().

Referenced by fwDcmtkIO::reader::main::ImageLazySource::ImageLazySource(), and fwDcmtkIO::reader::main::ImageLazySource::read().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename T >
static FWDCMTKIO_API void* fwDcmtkIO::reader::main::ImageLazyReader::createInstanceBuffer ( unsigned int  rows,
unsigned int  columns,
const ::fwMemory::BufferObject::sptr &  instance,
double  rescaleSlope,
double  rescaleIntercept,
::fwTools::Type  imageType 
)
inlinestaticprotected

Create an instance buffer according to the image type. 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]instancePath to the instance
[in]rescaleSlopeSlope parameter
[in]rescaleInterceptIntercept parameter
[in]imageTypeType of the image used to create the buffer

Definition at line 98 of file ImageLazyReader.hpp.

template<typename T , typename U >
static FWDCMTKIO_API U* fwDcmtkIO::reader::main::ImageLazyReader::createInstanceBuffer ( unsigned int  rows,
unsigned int  columns,
const ::fwMemory::BufferObject::sptr &  instance,
double  rescaleSlope,
double  rescaleIntercept 
)
inlinestaticprotected

Create an instance buffer according to the image type. The template T is used to determine if we must use signed or unsigned short when reading pixels. The template U is used to determine what kind of buffer must be created.

Parameters
[in]rowsNumber of rows
[in]columnsNumber of columns
[in]instancePath to the instance
[in]rescaleSlopeSlope parameter
[in]rescaleInterceptIntercept parameter

Definition at line 173 of file ImageLazyReader.hpp.

References fwDcmtkIO::helper::Codec::cleanup(), fwMemory::BufferObject::LockBase< T >::getBuffer(), OSLM_WARN_IF, and fwDcmtkIO::helper::Codec::registerCodecs().

+ Here is the call graph for this function:


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