#include <itkImageSeriesWriter.h>
Inheritance diagram for itk::ImageSeriesWriter< TInputImage, TOutputImage >:
Public Types | |
typedef ImageSeriesWriter | Self |
typedef ProcessObject | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TInputImage | InputImageType |
typedef InputImageType::RegionType | InputImageRegionType |
typedef TOutputImage | OutputImageType |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef ImageFileWriter< TOutputImage > | WriterType |
typedef std::vector< std::string > | FileNamesContainer |
typedef MetaDataDictionary | DictionaryType |
typedef MetaDataDictionary * | DictionaryRawPointer |
typedef std::vector< DictionaryRawPointer > | DictionaryArrayType |
typedef const DictionaryArrayType * | DictionaryArrayRawPointer |
Public Member Functions | |
virtual const char * | GetNameOfClass () const |
virtual void | Write (void) |
virtual void | Update () |
virtual void | SetMetaDataDictionaryArray (DictionaryArrayRawPointer _arg) |
void | SetInput (const InputImageType *input) |
const InputImageType * | GetInput (void) |
const InputImageType * | GetInput (unsigned int idx) |
virtual void | SetImageIO (ImageIOBase *_arg) |
virtual ImageIOBase * | GetImageIO () |
virtual void | SetStartIndex (unsigned long _arg) |
virtual unsigned long | GetStartIndex () |
virtual void | SetIncrementIndex (unsigned long _arg) |
virtual unsigned long | GetIncrementIndex () |
virtual void | SetSeriesFormat (const char *_arg) |
virtual const char * | GetSeriesFormat () const |
void | SetFileNames (const FileNamesContainer &name) |
const FileNamesContainer & | GetFileNames () const |
void | SetFileName (std::string const &name) |
void | AddFileName (std::string const &name) |
Static Public Member Functions | |
Pointer | New () |
Protected Member Functions | |
ImageSeriesWriter () | |
~ImageSeriesWriter () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
void | GenerateData (void) |
void | GenerateNumericFileNamesAndWrite (void) |
Protected Attributes | |
ImageIOBase::Pointer | m_ImageIO |
bool | m_UserSpecifiedImageIO |
ImageSeriesWriter writes its input data to a series of output files. The writer is templated over an input image type and an output image type. Usually, the output image type will have fewer dimensions than the input image type. Each file has a name created using the SeriesFormat. This string is used as a sprintf argument to build a filename. The string should contain zero or one "%d" or equivalent. The "%d" is an incremental file number that starts at StartIndex and is incremented by IncrementIndex. Since this writer uses an internal instance of an ImageFileWriter, the type of file is determined by either the file extension or an ImageIO class if specified.
Definition at line 80 of file itkImageSeriesWriter.h.
|
Reimplemented from itk::ProcessObject. Definition at line 87 of file itkImageSeriesWriter.h. |
|
Definition at line 107 of file itkImageSeriesWriter.h. |
|
Definition at line 106 of file itkImageSeriesWriter.h. |
|
Definition at line 105 of file itkImageSeriesWriter.h. |
|
The pixel type of the output image. Definition at line 104 of file itkImageSeriesWriter.h. |
|
Definition at line 101 of file itkImageSeriesWriter.h. |
|
Definition at line 97 of file itkImageSeriesWriter.h. |
|
Some convenient typedefs. Definition at line 96 of file itkImageSeriesWriter.h. |
|
Definition at line 99 of file itkImageSeriesWriter.h. |
|
Definition at line 98 of file itkImageSeriesWriter.h. |
|
Reimplemented from itk::ProcessObject. Definition at line 86 of file itkImageSeriesWriter.h. |
|
Standard class typedefs. Reimplemented from itk::ProcessObject. Definition at line 84 of file itkImageSeriesWriter.h. |
|
Reimplemented from itk::ProcessObject. Definition at line 85 of file itkImageSeriesWriter.h. |
|
Definition at line 100 of file itkImageSeriesWriter.h. |
|
|
|
|
|
Add a single filename to the list of files. To add a vector of filenames, use the AddFileNames method. Definition at line 186 of file itkImageSeriesWriter.h. |
|
Does the real work. Reimplemented from itk::ProcessObject. |
|
Transition method used for DEPRECATING old functionality. This method should be removed after release ITK 1.8 |
|
Set/Get the vector of strings that contains the file names. Files are processed in sequential order. Definition at line 168 of file itkImageSeriesWriter.h. |
|
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 to manually set one when the factory mechanism may not work (e.g., for raw files or for non-standard file suffix). |
|
Set the increment of the index of the series. The default value is 1. |
|
Set/Get the image input of this writer. Reimplemented from itk::ProcessObject. |
|
Set/Get the image input of this writer. |
|
Run-time type information (and related methods). Reimplemented from itk::ProcessObject. |
|
The format string used to generate each filename in the series. The filename is built with sprintf(filename, SeriesFormat, number) where number starts at StartIndex and is incremented by IncrementIndex. |
|
Use this method to set the starting index of the series. The default value is 1. |
|
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. |
|
Set the first file name to be processed. This deletes previous filenames. Definition at line 176 of file itkImageSeriesWriter.h. |
|
Set/Get the vector of strings that contains the file names. Files are processed in sequential order. Definition at line 160 of file itkImageSeriesWriter.h. |
|
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 to manually set one when the factory mechanism may not work (e.g., for raw files or for non-standard file suffix). |
|
Set the increment of the index of the series. The default value is 1. |
|
Set/Get the image input of this writer. |
|
Set the array of MetaDataDictionaries this is an optinal entry, mostly intended to be used when writing DICOM slices. |
|
The format string used to generate each filename in the series. The filename is built with sprintf(filename, SeriesFormat, number) where number starts at StartIndex and is incremented by IncrementIndex. |
|
Use this method to set the starting index of the series. The default value is 1. |
|
Aliased to the Write() method to be consistent with the rest of the pipeline. Reimplemented from itk::ProcessObject. Definition at line 133 of file itkImageSeriesWriter.h. |
|
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. The whole image is written. |
|
Definition at line 210 of file itkImageSeriesWriter.h. |
|
Definition at line 211 of file itkImageSeriesWriter.h. |