#include <itkImageIO.h>
Inheritance diagram for itk::ImageIO:
Public Types | |
typedef ImageIO | Self |
typedef SmartPointer< Self > | Pointer |
typedef ProcessObject | Superclass |
typedef std::deque< std::string > | FileExtensionsListType |
enum | ByteOrder { LittleEndian, BigEndian } |
Public Methods | |
virtual const char * | GetClassName () const |
virtual void | ReadHeader (const std::string fileName="")=0 |
virtual const double * | GetOrigin () const=0 |
virtual const double * | GetSpacing () const=0 |
virtual FileExtensionsListType & | GetSupportedFileExtensions () const=0 |
void * | GetFileData () |
virtual unsigned int | GetDimensions (unsigned int i) const |
virtual unsigned int | GetPixelStride () const |
virtual void | SetFileName (const char *_arg) |
virtual const char * | GetFileName () const |
virtual void | SetFilePrefix (const char *_arg) |
virtual const char * | GetFilePrefix () const |
virtual void | SetFilePattern (const char *_arg) |
virtual const char * | GetFilePattern () const |
virtual void | SetNumberOfComponents (unsigned int _arg) |
virtual unsigned int | GetNumberOfComponents () const |
virtual void | SetNumberOfDimensions (unsigned int _arg) |
virtual unsigned int | GetNumberOfDimensions () |
virtual void | SetPixelType (AtomicPixelType _arg) |
virtual AtomicPixelType | GetPixelType () |
Protected Methods | |
ImageIO () | |
~ImageIO () | |
void | PrintSelf (std::ostream &os, Indent indent) const |
virtual void | Reset (const bool freeDynamic=true) |
void | Resize (const unsigned int numDimensions, const unsigned int *dimensions) |
void | ComputeStrides () |
unsigned int | ImageSizeInPixels () const |
unsigned int | ImageSizeInComponents () const |
unsigned int | ImageSizeInBytes () const |
unsigned int | GetComponentStride () const |
unsigned int | GetRowStride () const |
unsigned int | GetSliceStride () const |
Protected Attributes | |
bool | m_Initialized |
std::string | m_FileName |
std::string | m_FilePrefix |
std::string | m_FilePattern |
AtomicPixelType | m_PixelType |
unsigned int | m_NumberOfComponents |
unsigned int | m_NumberOfDimensions |
unsigned int | m_Dimensions [ITK_MAX_DIMENSIONS] |
unsigned int | m_Strides [ITK_MAX_DIMENSIONS] |
void * | m_FileData |
|
The type of list for file extensions. Definition at line 54 of file itkImageIO.h. |
|
Reimplemented from itk::ProcessObject. Definition at line 37 of file itkImageIO.h. |
|
Standard class typedefs. Reimplemented from itk::ProcessObject. Definition at line 36 of file itkImageIO.h. |
|
Reimplemented from itk::ProcessObject. Definition at line 38 of file itkImageIO.h. |
|
Convenient enum for specifyin byte order. Definition at line 110 of file itkImageIO.h. |
|
|
|
|
|
Calculates the different strides (distance from one thing to the next). Upon return, strides[0] = bytes to get to the next component of a pixel, strides[1] = bytes to get to the next pixel in x direction, strides[2] = bytes to get to the next row in y direction, strides[3] = bytes to get to the next slice in z direction, etc. |
|
Run-time type information (and related methods). Reimplemented from itk::ProcessObject. |
|
Convenient method for accessing number of bytes to get to the next pixel component. Returns m_Strides[0]. |
|
Return and set the size in x, y, z, etc. dimensions. |
|
The guts of this class. Returns FileData, which holds the raw pixels of the image read from disk. |
|
Set the filename. |
|
The sprintf format used to build filename from FilePrefix and number. |
|
Specify file prefix for the image file(s). You should specify either a FileName or FilePrefix. Use FilePrefix if the data is stored in multiple files. (Note: the FileName ivar is available from the superclass.) |
|
Set the number of components per pixel in the image. This may be set by the reading process. |
|
Set the number of independent variables (dimensions) in the image being read. |
|
Get the image origin. |
|
Convenient method for accessing the number of bytes to get to the next pixel. Returns m_Strides[1]; |
|
Set/Get the type of the pixel. Often this is set during the read operation and does not always need to be set. |
|
Convenient method for accessing the number of bytes to get to the next row. Returns m_Strides[2]. |
|
Convenient method for accessing the number of bytes to get to the next slice. Returns m_Strides[3]. |
|
Get the image spacing. |
|
Returns the file extension that a particular ImageIO subclass is capable of handling (e.g. .jpg, .mhd, etc.) Currently only a single string is returned, but can be modified so that a whole list of strings is returned. |
|
Return the number of bytes in the image. |
|
Return the number of pixels times the number of components in the image. |
|
Return the number of pixels in the image. |
|
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. |
|
Read a file's header to determine image dimensions, etc. fileName is file to read from. default="", which uses m_FileName instead |
|
Return the object to an initialized state, ready to be used |
|
Resize the ImageIO object to new dimensions. |
|
Set the filename. |
|
The sprintf format used to build filename from FilePrefix and number. |
|
Specify file prefix for the image file(s). You should specify either a FileName or FilePrefix. Use FilePrefix if the data is stored in multiple files. (Note: the FileName ivar is available from the superclass.) |
|
Set the number of components per pixel in the image. This may be set by the reading process. |
|
Set the number of independent variables (dimensions) in the image being read. |
|
Set/Get the type of the pixel. Often this is set during the read operation and does not always need to be set. |
|
The array which stores the number of pixels in the x, y, z directions. Definition at line 136 of file itkImageIO.h. |
|
Stores the raw pixels of the image Definition at line 143 of file itkImageIO.h. |
|
Filename: pathname + filename + file extension. Definition at line 121 of file itkImageIO.h. |
|
Definition at line 123 of file itkImageIO.h. |
|
Definition at line 122 of file itkImageIO.h. |
|
Does the ImageIO object have enough info to be of use? Definition at line 118 of file itkImageIO.h. |
|
Stores the number of components per pixel. This will be 1 for grayscale images, 3 for RGBPixel images, and 4 for RGBPixelA images. Definition at line 130 of file itkImageIO.h. |
|
The number of dimensions in the image. Definition at line 133 of file itkImageIO.h. |
|
Type of the pixel. Definition at line 126 of file itkImageIO.h. |
|
Stores the number of bytes it takes to get to the next 'thing' e.g. component, pixel, row, slice, etc. Definition at line 140 of file itkImageIO.h. |