Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkITKImageWriter Class Reference

Writes image files using ITK. More...

#include <Libs/vtkITK/vtkITKImageWriter.h>

Inheritance diagram for vtkITKImageWriter:
Collaboration diagram for vtkITKImageWriter:

Public Types

enum  {
  VoxelVectorTypeUndefined , VoxelVectorTypeSpatial , VoxelVectorTypeColorRGB , VoxelVectorTypeColorRGBA ,
  VoxelVectorTypeSpatialCovariant , VoxelVectorType_Last
}
 
typedef vtkImageAlgorithm Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
char * GetFileName ()
 
virtual char * GetImageIOClassName ()
 Set/Get the ImageIO class name.
 
virtual int GetUseCompression ()
 Use compression if possible.
 
virtual int GetVoxelVectorType ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
void SetFileName (const char *)
 
virtual void SetImageIOClassName (const char *)
 
void SetMeasurementFrameMatrix (vtkMatrix4x4 *mat)
 Set orientation matrix.
 
void SetRasToIJKMatrix (vtkMatrix4x4 *mat)
 Set orientation matrix.
 
virtual void SetUseCompression (int)
 
virtual void SetVoxelVectorType (int)
 Defines how to interpret voxel components.
 
virtual void UseCompressionOff ()
 
virtual void UseCompressionOn ()
 
void Write ()
 The main interface which triggers the writer to start.
 

Static Public Member Functions

static void ConvertSpatialVectorVoxelsBetweenRasLps (vtkImageData *imageData)
 Convert voxel vector type between RAS and LPS measurement frame.
 
static int IsTypeOf (const char *type)
 
static vtkITKImageWriterNew ()
 
static vtkITKImageWriterSafeDownCast (vtkObject *o)
 
static void WriteMeasurementFrameMatrixToMetaDataDictionary (itk::MetaDataDictionary &dictionary, vtkMatrix4x4 *measurementFrameMatrix)
 Adds measurement frame matrix to the metadata.
 

Protected Member Functions

 vtkITKImageWriter ()
 
 ~vtkITKImageWriter () override
 

Protected Attributes

char * FileName
 
char * ImageIOClassName
 
vtkMatrix4x4 * MeasurementFrameMatrix
 
vtkMatrix4x4 * RasToIJKMatrix
 
int UseCompression
 
int VoxelVectorType
 

Detailed Description

Writes image files using ITK.

It can be used for writing 3D image data with voxels containing scalars, RGB, RGBA, spatial vectors (displacement, speed, etc.), or generic list components.

vtkITKImageSequenceWriter can be used instead for writing time sequence data (e.g., time sequence of displacement fields, RGB volumes, etc.).

See also
vtkITKImageSequenceWriter vtkITKArchetypeImageSeriesReader

Definition at line 38 of file vtkITKImageWriter.h.

Member Typedef Documentation

◆ Superclass

typedef vtkImageAlgorithm vtkITKImageWriter::Superclass

Definition at line 42 of file vtkITKImageWriter.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
VoxelVectorTypeUndefined 
VoxelVectorTypeSpatial 
VoxelVectorTypeColorRGB 
VoxelVectorTypeColorRGBA 
VoxelVectorTypeSpatialCovariant 
VoxelVectorType_Last 

Definition at line 45 of file vtkITKImageWriter.h.

Constructor & Destructor Documentation

◆ vtkITKImageWriter()

vtkITKImageWriter::vtkITKImageWriter ( )
protected

◆ ~vtkITKImageWriter()

vtkITKImageWriter::~vtkITKImageWriter ( )
overrideprotected

Member Function Documentation

◆ ConvertSpatialVectorVoxelsBetweenRasLps()

static void vtkITKImageWriter::ConvertSpatialVectorVoxelsBetweenRasLps ( vtkImageData * imageData)
static

Convert voxel vector type between RAS and LPS measurement frame.

◆ GetClassName()

virtual const char * vtkITKImageWriter::GetClassName ( )
virtual

◆ GetFileName()

char * vtkITKImageWriter::GetFileName ( )
inline

Definition at line 61 of file vtkITKImageWriter.h.

◆ GetImageIOClassName()

virtual char * vtkITKImageWriter::GetImageIOClassName ( )
virtual

Set/Get the ImageIO class name.

◆ GetUseCompression()

virtual int vtkITKImageWriter::GetUseCompression ( )
virtual

Use compression if possible.

◆ GetVoxelVectorType()

virtual int vtkITKImageWriter::GetVoxelVectorType ( )
virtual

◆ IsA()

virtual int vtkITKImageWriter::IsA ( const char * type)
virtual

◆ IsTypeOf()

static int vtkITKImageWriter::IsTypeOf ( const char * type)
static

◆ New()

static vtkITKImageWriter * vtkITKImageWriter::New ( )
static

◆ PrintSelf()

void vtkITKImageWriter::PrintSelf ( ostream & os,
vtkIndent indent )
override

◆ SafeDownCast()

static vtkITKImageWriter * vtkITKImageWriter::SafeDownCast ( vtkObject * o)
static

◆ SetFileName()

void vtkITKImageWriter::SetFileName ( const char * )

Specify file name for the image file. You should specify either a FileName or a FilePrefix. Use FilePrefix if the data is stored in multiple files.

◆ SetImageIOClassName()

virtual void vtkITKImageWriter::SetImageIOClassName ( const char * )
virtual

◆ SetMeasurementFrameMatrix()

void vtkITKImageWriter::SetMeasurementFrameMatrix ( vtkMatrix4x4 * mat)
inline

Set orientation matrix.

Definition at line 82 of file vtkITKImageWriter.h.

◆ SetRasToIJKMatrix()

void vtkITKImageWriter::SetRasToIJKMatrix ( vtkMatrix4x4 * mat)
inline

Set orientation matrix.

Definition at line 79 of file vtkITKImageWriter.h.

◆ SetUseCompression()

virtual void vtkITKImageWriter::SetUseCompression ( int )
virtual

◆ SetVoxelVectorType()

virtual void vtkITKImageWriter::SetVoxelVectorType ( int )
virtual

Defines how to interpret voxel components.

◆ UseCompressionOff()

virtual void vtkITKImageWriter::UseCompressionOff ( )
virtual

◆ UseCompressionOn()

virtual void vtkITKImageWriter::UseCompressionOn ( )
virtual

◆ Write()

void vtkITKImageWriter::Write ( )

The main interface which triggers the writer to start.

◆ WriteMeasurementFrameMatrixToMetaDataDictionary()

static void vtkITKImageWriter::WriteMeasurementFrameMatrixToMetaDataDictionary ( itk::MetaDataDictionary & dictionary,
vtkMatrix4x4 * measurementFrameMatrix )
static

Adds measurement frame matrix to the metadata.

Member Data Documentation

◆ FileName

char* vtkITKImageWriter::FileName
protected

Definition at line 98 of file vtkITKImageWriter.h.

◆ ImageIOClassName

char* vtkITKImageWriter::ImageIOClassName
protected

Definition at line 102 of file vtkITKImageWriter.h.

◆ MeasurementFrameMatrix

vtkMatrix4x4* vtkITKImageWriter::MeasurementFrameMatrix
protected

Definition at line 100 of file vtkITKImageWriter.h.

◆ RasToIJKMatrix

vtkMatrix4x4* vtkITKImageWriter::RasToIJKMatrix
protected

Definition at line 99 of file vtkITKImageWriter.h.

◆ UseCompression

int vtkITKImageWriter::UseCompression
protected

Definition at line 101 of file vtkITKImageWriter.h.

◆ VoxelVectorType

int vtkITKImageWriter::VoxelVectorType
protected

Definition at line 103 of file vtkITKImageWriter.h.


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