#include <itkImageFileWriter.h>
Inheritance diagram for itk::ImageFileWriter< TInputImage >:
Public Types | |
typedef ImageFileWriter | Self |
typedef ProcessObject | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TInputImage | InputImageType |
typedef InputImageType::Pointer | InputImagePointer |
typedef InputImageType::RegionType | InputImageRegionType |
typedef InputImageType::PixelType | InputImagePixelType |
Public Member Functions | |
virtual const char * | GetClassName () const |
virtual void | Write (void) |
virtual void | Update () |
void | SetInput (const InputImageType *input) |
const InputImageType * | GetInput (void) |
const InputImageType * | GetInput (unsigned int idx) |
virtual void | SetFileName (const char *_arg) |
virtual const char * | GetFileName () const |
virtual void | SetImageIO (ImageIOBase *_arg) |
virtual ImageIOBase * | GetImageIO () |
void | SetIORegion (const ImageIORegion ®ion) |
virtual ImageIORegion | GetIORegion () const |
Static Public Member Functions | |
Pointer | New () |
Protected Member Functions | |
ImageFileWriter () | |
~ImageFileWriter () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
void | GenerateData (void) |
ImageFileWriter writes its input data to a single output file. ImageFileWriter interfaces with an ImageIO class to write out the data. If you wish to write data into a series of files (e.g., a slice per file) use ImageSeriesWriter.
A pluggable factory pattern is used that allows different kinds of writers to be registered (even at run time) without having to modify the code in this class. You can either manually instantiate the ImageIO object and associate it with the ImageFileWriter, or let the class figure it out from the extension. Normally just setting the filename with a suitable suffix (".png", ".jpg", etc) and setting the input to the writer is enough to get the writer to work properly.
Definition at line 77 of file itkImageFileWriter.h.
|
Reimplemented from itk::ProcessObject. Definition at line 84 of file itkImageFileWriter.h. |
|
Definition at line 96 of file itkImageFileWriter.h. |
|
Definition at line 94 of file itkImageFileWriter.h. |
|
Definition at line 95 of file itkImageFileWriter.h. |
|
Some convenient typedefs. Definition at line 93 of file itkImageFileWriter.h. |
|
Reimplemented from itk::ProcessObject. Definition at line 83 of file itkImageFileWriter.h. |
|
Standard class typedefs. Reimplemented from itk::ProcessObject. Definition at line 81 of file itkImageFileWriter.h. Referenced by itk::ImageFileWriter< TInputImage >::Update(). |
|
Reimplemented from itk::ProcessObject. Definition at line 82 of file itkImageFileWriter.h. |
|
|
|
|
|
Does the real work. Reimplemented from itk::ProcessObject.
|
|
Run-time type information (and related methods). Reimplemented from itk::ProcessObject.
|
|
Specify the name of the output file to write. |
|
Set/Get the ImageIO helper class. Usually this is created via the object factory mechanism that determines whether a particular ImageIO can write a certain file. This method provides a way to get the ImageIO instance that is created, or one can be manually set where the IO factory mechanism may not work (for example, raw image files or image files with non-standard filename suffix's. |
|
Set/Get the image input of this writer. Reimplemented from itk::ProcessObject.
|
|
Set/Get the image input of this writer. |
|
Specify the region to write. If left NULL, then the whole image is written. |
|
Method for creation through the object factory. Reimplemented from itk::Object.
|
|
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from itk::ProcessObject.
|
|
Specify the name of the output file to write. |
|
Set/Get the ImageIO helper class. Usually this is created via the object factory mechanism that determines whether a particular ImageIO can write a certain file. This method provides a way to get the ImageIO instance that is created, or one can be manually set where the IO factory mechanism may not work (for example, raw image files or image files with non-standard filename suffix's. |
|
Set/Get the image input of this writer. |
|
Specify the region to write. If left NULL, then the whole image is written. |
|
Aliased to the Write() method to be consistent with the rest of the pipeline. Reimplemented from itk::ProcessObject. Definition at line 136 of file itkImageFileWriter.h. References itk::ImageIOBase::Pointer, and itk::ImageFileWriter< TInputImage >::Self. |
|
A special version of the Update() method for writers. It invokes start and end events and handles releasing data. It eventually calls GenerateData() which does the actual writing. Note: the write method will write data specified by the IORegion. If not set, then then the whole image is written. Note that the region will be cropped to fit the input image's LargestPossibleRegion. |