#include <itkImageFileCastWriter.h>
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 41 of file itkImageFileCastWriter.h.
Public Types | |
using | ConstPointer = SmartPointer<const Self> |
using | Pointer = SmartPointer<Self> |
using | Self = ImageFileCastWriter |
using | Superclass = ImageFileWriter<TInputImage> |
Public Member Functions | |
virtual const char * | GetClassName () const |
virtual const char * | GetOutputComponentType () const |
ITK_DISALLOW_COPY_AND_MOVE (ImageFileCastWriter) | |
itkStaticConstMacro (InputImageDimension, unsigned int, InputImageType::ImageDimension) | |
virtual void | SetOutputComponentType (const char *_arg) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
void | GenerateData () override |
ImageFileCastWriter ()=default | |
~ImageFileCastWriter () override=default | |
Private Member Functions | |
template<class OutputComponentType > | |
void * | ConvertScalarImage (const DataObject *inputImage) |
Static Private Member Functions | |
static std::string | GetDefaultOutputComponentType () |
Private Attributes | |
ProcessObject::Pointer | m_Caster { nullptr } |
std::string | m_OutputComponentType { Self::GetDefaultOutputComponentType() } |
using itk::ImageFileCastWriter< TInputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 50 of file itkImageFileCastWriter.h.
using itk::ImageFileCastWriter< TInputImage >::Pointer = SmartPointer<Self> |
Definition at line 49 of file itkImageFileCastWriter.h.
using itk::ImageFileCastWriter< TInputImage >::Self = ImageFileCastWriter |
Standard class typedefs.
Definition at line 47 of file itkImageFileCastWriter.h.
using itk::ImageFileCastWriter< TInputImage >::Superclass = ImageFileWriter<TInputImage> |
Definition at line 48 of file itkImageFileCastWriter.h.
|
protecteddefault |
|
overrideprotecteddefault |
|
inlineprivate |
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 91 of file itkImageFileCastWriter.h.
|
overrideprotected |
Does the real work.
|
virtual |
Run-time type information (and related methods).
|
staticprivate |
Determine the default outputcomponentType
|
virtual |
itk::ImageFileCastWriter< TInputImage >::ITK_DISALLOW_COPY_AND_MOVE | ( | ImageFileCastWriter< TInputImage > | ) |
itk::ImageFileCastWriter< TInputImage >::itkStaticConstMacro | ( | InputImageDimension | , |
unsigned int | , | ||
InputImageType::ImageDimension | ) |
|
static |
Method for creation through the object factory.
|
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
|
private |
Definition at line 115 of file itkImageFileCastWriter.h.
|
private |
Definition at line 117 of file itkImageFileCastWriter.h.
Generated on 2024-07-17 for elastix by 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) |