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>

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 40 of file itkImageFileCastWriter.h.

+ Inheritance diagram for itk::ImageFileCastWriter< TInputImage >:

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) override
 
 ImageFileCastWriter ()
 
 ~ImageFileCastWriter () override
 

Protected Attributes

ProcessObject::Pointer m_Caster
 

Private Member Functions

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

Private Attributes

std::string m_OutputComponentType
 

Member Typedef Documentation

◆ ConstPointer

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

Definition at line 48 of file itkImageFileCastWriter.h.

◆ InputImagePixelType

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

Definition at line 60 of file itkImageFileCastWriter.h.

◆ InputImagePointer

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

Definition at line 58 of file itkImageFileCastWriter.h.

◆ InputImageRegionType

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

Definition at line 59 of file itkImageFileCastWriter.h.

◆ InputImageType

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

Some convenient typedefs.

Definition at line 57 of file itkImageFileCastWriter.h.

◆ Pointer

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

Definition at line 47 of file itkImageFileCastWriter.h.

◆ Self

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

Standard class typedefs.

Definition at line 45 of file itkImageFileCastWriter.h.

◆ Superclass

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

Definition at line 46 of file itkImageFileCastWriter.h.

Constructor & Destructor Documentation

◆ ImageFileCastWriter() [1/2]

template<class TInputImage >
itk::ImageFileCastWriter< TInputImage >::ImageFileCastWriter ( )
protected

◆ ~ImageFileCastWriter()

template<class TInputImage >
itk::ImageFileCastWriter< TInputImage >::~ImageFileCastWriter ( )
overrideprotected

◆ ImageFileCastWriter() [2/2]

template<class TInputImage >
itk::ImageFileCastWriter< TInputImage >::ImageFileCastWriter ( const Self )
private

Member Function Documentation

◆ ConvertScalarImage()

template<class TInputImage >
template<class OutputComponentType >
void * itk::ImageFileCastWriter< TInputImage >::ConvertScalarImage ( const DataObject *  inputImage,
const OutputComponentType &   
)
inlineprotected

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 86 of file itkImageFileCastWriter.h.

◆ GenerateData()

template<class TInputImage >
void itk::ImageFileCastWriter< TInputImage >::GenerateData ( void  )
overrideprotected

Does the real work.

◆ GetClassName()

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

Run-time type information (and related methods).

◆ GetDefaultOutputComponentType()

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

Determine the default outputcomponentType

◆ GetOutputComponentType()

template<class TInputImage >
virtual const char * itk::ImageFileCastWriter< TInputImage >::GetOutputComponentType ( ) const
virtual

◆ itkStaticConstMacro()

template<class TInputImage >
itk::ImageFileCastWriter< TInputImage >::itkStaticConstMacro ( InputImageDimension  ,
unsigned int  ,
InputImageType::ImageDimension   
)

◆ New()

template<class TInputImage >
static Pointer itk::ImageFileCastWriter< TInputImage >::New ( )
static

Method for creation through the object factory.

◆ operator=()

template<class TInputImage >
void itk::ImageFileCastWriter< TInputImage >::operator= ( const Self )
private

◆ SetOutputComponentType()

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

◆ m_Caster

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

Definition at line 115 of file itkImageFileCastWriter.h.

◆ m_OutputComponentType

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

Definition at line 122 of file itkImageFileCastWriter.h.



Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo