go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes
itk::ImageFileCastWriter< TInputImage > Class Template Reference

#include <itkImageFileCastWriter.h>

Inheritance diagram for itk::ImageFileCastWriter< TInputImage >:
Inheritance graph
[legend]
Collaboration diagram for itk::ImageFileCastWriter< TInputImage >:
Collaboration graph
[legend]

Public Types

typedef SmartPointer< const SelfConstPointer
typedef
Superclass::InputImagePixelType 
InputImagePixelType
typedef
Superclass::InputImagePointer 
InputImagePointer
typedef
Superclass::InputImageRegionType 
InputImageRegionType
typedef Superclass::InputImageType InputImageType
typedef SmartPointer< SelfPointer
typedef ImageFileCastWriter Self
typedef ImageFileWriter
< TInputImage > 
Superclass

Public Member Functions

virtual const char * GetClassName () const
std::string GetDefaultOutputComponentType (void) const
virtual const char * GetOutputComponentType () const
 itkStaticConstMacro (InputImageDimension, unsigned int, InputImageType::ImageDimension)
virtual void SetOutputComponentType (const char *_arg)

Static Public Member Functions

static Pointer New ()

Protected Member Functions

template<class OutputComponentType >
void * ConvertScalarImage (const DataObject *inputImage, const OutputComponentType &)
void GenerateData (void)
 ImageFileCastWriter ()
 ~ImageFileCastWriter ()

Protected Attributes

ProcessObject::Pointer m_Caster

Private Member Functions

 ImageFileCastWriter (const Self &)
void operator= (const Self &)

Private Attributes

std::string m_OutputComponentType

Detailed Description

template<class TInputImage>
class itk::ImageFileCastWriter< TInputImage >

Casts pixel type and writes image data.

This filter saves an image and casts the data on the fly, if necessary. This is useful in some cases, to avoid the use of a itk::CastImageFilter (to save memory for example).

Definition at line 38 of file itkImageFileCastWriter.h.


Member Typedef Documentation

template<class TInputImage >
typedef SmartPointer<const Self> itk::ImageFileCastWriter< TInputImage >::ConstPointer

Definition at line 45 of file itkImageFileCastWriter.h.

template<class TInputImage >
typedef Superclass::InputImagePixelType itk::ImageFileCastWriter< TInputImage >::InputImagePixelType

Definition at line 57 of file itkImageFileCastWriter.h.

template<class TInputImage >
typedef Superclass::InputImagePointer itk::ImageFileCastWriter< TInputImage >::InputImagePointer

Definition at line 55 of file itkImageFileCastWriter.h.

template<class TInputImage >
typedef Superclass::InputImageRegionType itk::ImageFileCastWriter< TInputImage >::InputImageRegionType

Definition at line 56 of file itkImageFileCastWriter.h.

template<class TInputImage >
typedef Superclass::InputImageType itk::ImageFileCastWriter< TInputImage >::InputImageType

Some convenient typedefs.

Definition at line 51 of file itkImageFileCastWriter.h.

template<class TInputImage >
typedef SmartPointer<Self> itk::ImageFileCastWriter< TInputImage >::Pointer

Definition at line 44 of file itkImageFileCastWriter.h.

template<class TInputImage >
typedef ImageFileCastWriter itk::ImageFileCastWriter< TInputImage >::Self

Standard class typedefs.

Definition at line 42 of file itkImageFileCastWriter.h.

template<class TInputImage >
typedef ImageFileWriter<TInputImage> itk::ImageFileCastWriter< TInputImage >::Superclass

Definition at line 43 of file itkImageFileCastWriter.h.


Constructor & Destructor Documentation

template<class TInputImage >
itk::ImageFileCastWriter< TInputImage >::ImageFileCastWriter ( ) [protected]
template<class TInputImage >
itk::ImageFileCastWriter< TInputImage >::~ImageFileCastWriter ( ) [protected]
template<class TInputImage >
itk::ImageFileCastWriter< TInputImage >::ImageFileCastWriter ( const Self ) [private]

Member Function Documentation

template<class TInputImage >
template<class OutputComponentType >
void* itk::ImageFileCastWriter< TInputImage >::ConvertScalarImage ( const DataObject *  inputImage,
const OutputComponentType &   
) [inline, protected]

Templated function that casts the input image and returns a a pointer to the PixelBuffer. Assumes scalar singlecomponent images The buffer data is valid until this->m_Caster is destroyed or assigned a new caster. The ImageIO's PixelType is also adapted by this function

Definition at line 82 of file itkImageFileCastWriter.h.

template<class TInputImage >
void itk::ImageFileCastWriter< TInputImage >::GenerateData ( void  ) [protected]

Does the real work.

template<class TInputImage >
virtual const char* itk::ImageFileCastWriter< TInputImage >::GetClassName ( ) const [virtual]

Run-time type information (and related methods).

template<class TInputImage >
std::string itk::ImageFileCastWriter< TInputImage >::GetDefaultOutputComponentType ( void  ) const

Determine the default outputcomponentType

template<class TInputImage >
virtual const char* itk::ImageFileCastWriter< TInputImage >::GetOutputComponentType ( ) const [virtual]
template<class TInputImage >
itk::ImageFileCastWriter< TInputImage >::itkStaticConstMacro ( InputImageDimension  ,
unsigned  int,
InputImageType::ImageDimension   
)
template<class TInputImage >
static Pointer itk::ImageFileCastWriter< TInputImage >::New ( ) [static]

Method for creation through the object factory.

template<class TInputImage >
void itk::ImageFileCastWriter< TInputImage >::operator= ( const Self ) [private]
template<class TInputImage >
virtual void itk::ImageFileCastWriter< TInputImage >::SetOutputComponentType ( const char *  _arg) [virtual]

Set the component type for writing to disk; default: the same as the InputImagePixelType::ComponentType. This setting is ignored when the inputImagePixelType is not a scalar


Field Documentation

template<class TInputImage >
ProcessObject::Pointer itk::ImageFileCastWriter< TInputImage >::m_Caster [protected]

Definition at line 107 of file itkImageFileCastWriter.h.

template<class TInputImage >
std::string itk::ImageFileCastWriter< TInputImage >::m_OutputComponentType [private]

Definition at line 113 of file itkImageFileCastWriter.h.



Generated on 11-05-2012 for elastix by doxygen 1.7.6.1 elastix logo