![]() |
Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Writes NRRD files using the teem library. More...
#include <Libs/vtkTeem/vtkTeemNRRDWriter.h>
Public Types | |
typedef vtkWriter | Superclass |
Public Member Functions | |
virtual void | ForceRangeAxisOff () |
virtual void | ForceRangeAxisOn () |
virtual vtkDoubleArray * | GetBValues () |
virtual const char * | GetClassName () |
virtual int | GetCompressionLevel () |
virtual vtkDoubleArray * | GetDiffusionGradients () |
virtual char * | GetFileName () |
virtual int | GetFileType () |
virtual bool | GetForceRangeAxis () |
virtual vtkMatrix4x4 * | GetIJKToRASMatrix () |
vtkImageData * | GetInput () |
Get the input to this writer. | |
vtkImageData * | GetInput (int port) |
virtual vtkMatrix4x4 * | GetMeasurementFrameMatrix () |
virtual int | GetSpace () |
virtual int | GetUseCompression () |
virtual int | GetWriteError () |
virtual int | IsA (const char *type) |
void * | MakeNRRD () |
Utility function to return image as a Nrrd*. | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | SetAttribute (const std::string &name, const std::string &value) |
void | SetAxisLabel (unsigned int axis, const char *label) |
Method to set label for each axis. | |
void | SetAxisUnit (unsigned int axis, const char *unit) |
Method to set unit for each axis. | |
virtual void | SetBValues (vtkDoubleArray *) |
virtual void | SetCompressionLevel (int) |
virtual void | SetDiffusionGradients (vtkDoubleArray *) |
virtual void | SetFileName (const char *) |
Specify file name of vtk polygon data file to write. | |
virtual void | SetFileType (int) |
void | SetFileTypeToASCII () |
void | SetFileTypeToBinary () |
virtual void | SetForceRangeAxis (bool) |
virtual void | SetIJKToRASMatrix (vtkMatrix4x4 *) |
virtual void | SetMeasurementFrameMatrix (vtkMatrix4x4 *) |
virtual void | SetSpace (int) |
virtual void | SetUseCompression (int) |
void | SetVectorAxisKind (int kind) |
virtual void | SetWriteError (int) |
virtual void | UseCompressionOff () |
virtual void | UseCompressionOn () |
void | vtkSetSpaceToLPS () |
Set coordinate system to LPS. | |
void | vtkSetSpaceToLPST () |
void | vtkSetSpaceToRAS () |
Set coordinate system to RAS. | |
void | vtkSetSpaceToRAST () |
virtual void | WriteErrorOff () |
virtual void | WriteErrorOn () |
Flag that is set by WriteData() if writing fails. | |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkTeemNRRDWriter * | New () |
static vtkTeemNRRDWriter * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
int | FillInputPortInformation (int port, vtkInformation *info) override |
vtkTeemNRRDWriter () | |
void | WriteData () override |
Write method. It is called by vtkWriter::Write();. | |
~vtkTeemNRRDWriter () override | |
Protected Attributes | |
AttributeMapType * | Attributes |
AxisInfoMapType * | AxisLabels |
AxisInfoMapType * | AxisUnits |
vtkDoubleArray * | BValues |
int | CompressionLevel |
vtkDoubleArray * | DiffusionGradients |
char * | FileName |
int | FileType |
bool | ForceRangeAxis |
vtkMatrix4x4 * | IJKToRASMatrix |
vtkMatrix4x4 * | MeasurementFrameMatrix |
int | Space |
int | UseCompression |
int | VectorAxisKind |
int | WriteError |
Flag to set to on when a write error occurred. | |
Writes NRRD files using the teem library.
This class was originally developed for writing DWI images and it is still the recommended writer for this purpose. The class was later extended to allow writing vector images, but it has some limitations: It can only write 3D images with voxel component axis kind scalar, RGB, RGBA, list, or a manually specified kind.
vtkITKImageWriter is a more general-purpose writer - 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 for writing time sequence data (e.g., time sequence of displacement fields, RGB volumes, etc.).
Definition at line 29 of file vtkTeemNRRDWriter.h.
typedef vtkWriter vtkTeemNRRDWriter::Superclass |
Definition at line 32 of file vtkTeemNRRDWriter.h.
|
protected |
|
overrideprotected |
|
overrideprotected |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
vtkImageData * vtkTeemNRRDWriter::GetInput | ( | ) |
Get the input to this writer.
vtkImageData * vtkTeemNRRDWriter::GetInput | ( | int | port | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
static |
void * vtkTeemNRRDWriter::MakeNRRD | ( | ) |
Utility function to return image as a Nrrd*.
|
static |
|
override |
|
static |
void vtkTeemNRRDWriter::SetAttribute | ( | const std::string & | name, |
const std::string & | value ) |
Method to set an attribute that will be passed into the NRRD file on write
void vtkTeemNRRDWriter::SetAxisLabel | ( | unsigned int | axis, |
const char * | label ) |
Method to set label for each axis.
void vtkTeemNRRDWriter::SetAxisUnit | ( | unsigned int | axis, |
const char * | unit ) |
Method to set unit for each axis.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Specify file name of vtk polygon data file to write.
|
virtual |
|
inline |
Definition at line 68 of file vtkTeemNRRDWriter.h.
|
inline |
Definition at line 69 of file vtkTeemNRRDWriter.h.
|
virtual |
Force the addition of a range axis, even when the size of the first image dimension (components, or frame list) is 1. This is useful when attempting to write an image sequence with a single frame, as otherwise the range dimension would be omitted.
|
virtual |
|
virtual |
|
virtual |
Method to set the coordinate system written to the NRRD file. Currently the only valid coordinate systems are: RAS, RAST, LPS, and LPST.
|
virtual |
void vtkTeemNRRDWriter::SetVectorAxisKind | ( | int | kind | ) |
Method to force axis kind for the non-spatial axis (4th dimension). If not set (or set to nrrdKindUnknown) then axis kind is guessed from the number of components and scalar type.
|
virtual |
|
virtual |
|
virtual |
|
inline |
Set coordinate system to LPS.
Definition at line 101 of file vtkTeemNRRDWriter.h.
|
inline |
Definition at line 102 of file vtkTeemNRRDWriter.h.
|
inline |
Set coordinate system to RAS.
Definition at line 97 of file vtkTeemNRRDWriter.h.
|
inline |
Definition at line 98 of file vtkTeemNRRDWriter.h.
|
overrideprotected |
Write method. It is called by vtkWriter::Write();.
|
virtual |
|
virtual |
Flag that is set by WriteData() if writing fails.
|
protected |
Definition at line 139 of file vtkTeemNRRDWriter.h.
|
protected |
Definition at line 140 of file vtkTeemNRRDWriter.h.
|
protected |
Definition at line 141 of file vtkTeemNRRDWriter.h.
|
protected |
Definition at line 129 of file vtkTeemNRRDWriter.h.
|
protected |
Definition at line 136 of file vtkTeemNRRDWriter.h.
|
protected |
Definition at line 130 of file vtkTeemNRRDWriter.h.
|
protected |
Definition at line 127 of file vtkTeemNRRDWriter.h.
|
protected |
Definition at line 137 of file vtkTeemNRRDWriter.h.
|
protected |
Definition at line 145 of file vtkTeemNRRDWriter.h.
|
protected |
Definition at line 132 of file vtkTeemNRRDWriter.h.
|
protected |
Definition at line 133 of file vtkTeemNRRDWriter.h.
|
protected |
Definition at line 143 of file vtkTeemNRRDWriter.h.
|
protected |
Definition at line 135 of file vtkTeemNRRDWriter.h.
|
protected |
Definition at line 142 of file vtkTeemNRRDWriter.h.
|
protected |
Flag to set to on when a write error occurred.
Definition at line 125 of file vtkTeemNRRDWriter.h.