ITK
5.2.0
Insight Toolkit
|
#include <itkImageFileWriter.h>
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
std::string | m_FileName |
ImageIOBase::Pointer | m_ImageIO |
bool | m_UserSpecifiedImageIO { false } |
ImageIORegion | m_PasteIORegion { TInputImage::ImageDimension } |
unsigned int | m_NumberOfStreamDivisions { 1 } |
bool | m_UserSpecifiedIORegion { false } |
bool | m_FactorySpecifiedImageIO { false } |
bool | m_UseCompression { false } |
int | m_CompressionLevel { -1 } |
bool | m_UseInputMetaDataDictionary { true } |
virtual void | SetFileName (const char *_arg) |
virtual const char * | GetFileName () const |
void | SetImageIO (ImageIOBase *io) |
virtual ImageIOBase * | GetModifiableImageIO () |
virtual const ImageIOBase * | GetImageIO () const |
virtual void | Write () |
void | SetIORegion (const ImageIORegion ®ion) |
const ImageIORegion & | GetIORegion () const |
virtual void | SetNumberOfStreamDivisions (unsigned int _arg) |
virtual const unsigned int & | GetNumberOfStreamDivisions () const |
void | Update () override |
void | UpdateLargestPossibleRegion () override |
virtual void | SetUseCompression (bool _arg) |
virtual const bool & | GetUseCompression () const |
virtual void | UseCompressionOn () |
virtual void | UseCompressionOff () |
virtual void | SetCompressionLevel (int _arg) |
virtual const int & | GetCompressionLevel () const |
virtual void | SetUseInputMetaDataDictionary (bool _arg) |
virtual const bool & | GetUseInputMetaDataDictionary () const |
virtual void | UseInputMetaDataDictionaryOn () |
virtual void | UseInputMetaDataDictionaryOff () |
ImageFileWriter ()=default | |
~ImageFileWriter () override=default | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
void | GenerateData () override |
Writes image data to a single file.
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 88 of file itkImageFileWriter.h.
using itk::ImageFileWriter< TInputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 97 of file itkImageFileWriter.h.
using itk::ImageFileWriter< TInputImage >::InputImagePixelType = typename InputImageType::PixelType |
Definition at line 109 of file itkImageFileWriter.h.
using itk::ImageFileWriter< TInputImage >::InputImagePointer = typename InputImageType::Pointer |
Definition at line 107 of file itkImageFileWriter.h.
using itk::ImageFileWriter< TInputImage >::InputImageRegionType = typename InputImageType::RegionType |
Definition at line 108 of file itkImageFileWriter.h.
using itk::ImageFileWriter< TInputImage >::InputImageType = TInputImage |
Some convenient type alias.
Definition at line 106 of file itkImageFileWriter.h.
using itk::ImageFileWriter< TInputImage >::Pointer = SmartPointer<Self> |
Definition at line 96 of file itkImageFileWriter.h.
using itk::ImageFileWriter< TInputImage >::Self = ImageFileWriter |
Standard class type aliases.
Definition at line 94 of file itkImageFileWriter.h.
using itk::ImageFileWriter< TInputImage >::Superclass = ProcessObject |
Definition at line 95 of file itkImageFileWriter.h.
|
protecteddefault |
Specify the name of the output file to write.
|
overrideprotecteddefault |
Specify the name of the output file to write.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
overrideprotectedvirtual |
Does the real work.
Reimplemented from itk::ProcessObject.
|
virtual |
Specify the name of the output file to write.
|
virtual |
Specify the name of the output file to write.
|
virtual |
Specify the name of the output file to write.
const InputImageType* itk::ImageFileWriter< TInputImage >::GetInput | ( | ) |
const InputImageType* itk::ImageFileWriter< TInputImage >::GetInput | ( | unsigned int | idx | ) |
|
inline |
Specify the name of the output file to write.
Definition at line 166 of file itkImageFileWriter.h.
|
virtual |
Specify the name of the output file to write.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ProcessObject.
|
virtual |
Specify the name of the output file to write.
|
virtual |
Specify the name of the output file to write.
|
virtual |
Specify the name of the output file to write.
|
static |
Method for creation through the object factory.
Referenced by itk::WriteImage().
|
overrideprotectedvirtual |
Specify the name of the output file to write.
Reimplemented from itk::ProcessObject.
|
virtual |
Set the compression level.
|
virtual |
Specify the name of the output file to write.
|
inline |
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. If the user specifies the ImageIO, we assume she makes the correct choice and will allow a file to be created regardless of the file extension. If the factory has set the ImageIO, the extension must be supported by the specified ImageIO.
Definition at line 138 of file itkImageFileWriter.h.
void itk::ImageFileWriter< TInputImage >::SetInput | ( | const InputImageType * | input | ) |
void itk::ImageFileWriter< TInputImage >::SetIORegion | ( | const ImageIORegion & | region | ) |
Specify the region to write. If left nullptr, then the whole image is written.
|
virtual |
Set/Get the number of pieces to divide the input. The upstream pipeline will try to be executed this many times.
|
virtual |
Set the compression On or Off
|
virtual |
By default the MetaDataDictionary is taken from the input image and passed to the ImageIO. In some cases, however, a user may prefer to introduce her/his own MetaDataDictionary. This is often the case of the ImageSeriesWriter. This flag defined whether the MetaDataDictionary to use will be the one from the input image or the one already set in the ImageIO object.
|
inlineoverridevirtual |
Aliased to the Write() method to be consistent with the rest of the pipeline.
Reimplemented from itk::ProcessObject.
Definition at line 180 of file itkImageFileWriter.h.
|
inlineoverridevirtual |
Writes the entire image to file.
Updates the pipeline, streaming it the NumberOfStreamDivisions times. Existing PasteIORegion is reset.
Reimplemented from itk::ProcessObject.
Definition at line 191 of file itkImageFileWriter.h.
|
virtual |
Specify the name of the output file to write.
|
virtual |
Specify the name of the output file to write.
|
virtual |
Specify the name of the output file to write.
|
virtual |
Specify the name of the output file to write.
|
virtual |
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.
|
private |
Specify the name of the output file to write.
Definition at line 243 of file itkImageFileWriter.h.
|
private |
Specify the name of the output file to write.
Definition at line 241 of file itkImageFileWriter.h.
|
private |
Specify the name of the output file to write.
Definition at line 232 of file itkImageFileWriter.h.
|
private |
Specify the name of the output file to write.
Definition at line 234 of file itkImageFileWriter.h.
|
private |
Specify the name of the output file to write.
Definition at line 238 of file itkImageFileWriter.h.
|
private |
Specify the name of the output file to write.
Definition at line 237 of file itkImageFileWriter.h.
|
private |
Specify the name of the output file to write.
Definition at line 242 of file itkImageFileWriter.h.
|
private |
Specify the name of the output file to write.
Definition at line 244 of file itkImageFileWriter.h.
|
private |
Specify the name of the output file to write.
Definition at line 235 of file itkImageFileWriter.h.
|
private |
Specify the name of the output file to write.
Definition at line 239 of file itkImageFileWriter.h.