|
|
Home | Main Page | Topics | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#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 42 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 * | GetOutputComponentType () const |
| ITK_DISALLOW_COPY_AND_MOVE (ImageFileCastWriter) | |
| itkOverrideGetNameOfClassMacro (ImageFileCastWriter) | |
| itkStaticConstMacro (InputImageDimension, unsigned int, TInputImage::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<typename OutputComponentType> | |
| const void * | ConvertScalarImage (const DataObject &inputImage) |
| template<typename... TResultPixel> | |
| const void * | ConvertScalarImageAsSpecifiedByFixedWidthPixelType (const DataObject &inputImage) |
| template<typename TResultPixel> | |
| bool | ConvertScalarImageIfPixelTypesMatch (const DataObject &inputImage, const void *&outputDataBuffer) |
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 51 of file itkImageFileCastWriter.h.
| using itk::ImageFileCastWriter< TInputImage >::Pointer = SmartPointer<Self> |
Definition at line 50 of file itkImageFileCastWriter.h.
| using itk::ImageFileCastWriter< TInputImage >::Self = ImageFileCastWriter |
Standard class typedefs.
Definition at line 48 of file itkImageFileCastWriter.h.
| using itk::ImageFileCastWriter< TInputImage >::Superclass = ImageFileWriter<TInputImage> |
Definition at line 49 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 92 of file itkImageFileCastWriter.h.
|
inlineprivate |
Converts the specified scalar input image to the image type with OutputComponentType as pixel type.
Definition at line 135 of file itkImageFileCastWriter.h.
|
inlineprivate |
Converts the specified scalar input image to the image type with the specified pixel type, if the OutputComponentType matches the template argument TResultPixel. OutputComponentType should be of the fixed width form: "intN", "uintN", or "floatN", with 'N' specifying the number of bits, otherwise this function returns false.
Definition at line 122 of file itkImageFileCastWriter.h.
|
overrideprotected |
Does the real work.
|
staticprivate |
Determine the default outputcomponentType
|
virtual |
| itk::ImageFileCastWriter< TInputImage >::ITK_DISALLOW_COPY_AND_MOVE | ( | ImageFileCastWriter< TInputImage > | ) |
| itk::ImageFileCastWriter< TInputImage >::itkOverrideGetNameOfClassMacro | ( | ImageFileCastWriter< TInputImage > | ) |
Run-time type information (and related methods).
| itk::ImageFileCastWriter< TInputImage >::itkStaticConstMacro | ( | InputImageDimension | , |
| unsigned int | , | ||
| TInputImage::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 145 of file itkImageFileCastWriter.h.
|
private |
Definition at line 147 of file itkImageFileCastWriter.h.
Generated on 1774142652 for elastix by 1.15.0 |