#include <itkImageIOBase.h>
ImageIOBase is a class that reads and/or writes image data of a particular format (such as PNG or raw binary). The ImageIOBase encapsulates both the reading and writing of data. The ImageIOBase is used by the ImageFileReader class (to read data) and the ImageFileWriter (to write data) into a single file. The ImageSeriesReader and ImageSeriesWriter classes are used to read and write data (in conjunction with ImageIOBase) when the data is represented by a series of files. Normally the user does not directly manipulate this class other than to instantiate it, set the FileName, and assign it to a ImageFileReader/ImageFileWriter or ImageSeriesReader/ImageSeriesWriter.
A Pluggable factory pattern is used this allows different kinds of readers to be registered (even at run time) without having to modify the code in this class.
Definition at line 58 of file itkImageIOBase.h.
Public Types | |
typedef std::vector< std::string > | ArrayOfExtensionsType |
enum | ByteOrder { BigEndian, LittleEndian, OrderNotApplicable } |
typedef SmartPointer< const Self > | ConstPointer |
enum | FileType { ASCII, Binary, TypeNotApplicable } |
enum | IOComponentType { UNKNOWNCOMPONENTTYPE, UCHAR, CHAR, USHORT, SHORT, UINT, INT, ULONG, LONG, FLOAT, DOUBLE } |
enum | IOPixelType { UNKNOWNPIXELTYPE, SCALAR, RGB, RGBA, OFFSET, VECTOR, POINT, COVARIANTVECTOR, SYMMETRICSECONDRANKTENSOR, DIFFUSIONTENSOR3D, COMPLEX, FIXEDARRAY, MATRIX } |
typedef SmartPointer< Self > | Pointer |
typedef ImageIOBase | Self |
typedef std::streamoff | SizeType |
typedef LightProcessObject | Superclass |
Public Member Functions | |
virtual void | AbortGenerateDataOff () |
virtual void | AbortGenerateDataOn () |
virtual bool | CanReadFile (const char *)=0 |
virtual bool | CanStreamRead () |
virtual bool | CanStreamWrite () |
virtual bool | CanWriteFile (const char *)=0 |
virtual LightObject::Pointer | CreateAnother () const |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
virtual void | Delete () |
virtual ImageIORegion | GenerateStreamableReadRegionFromRequestedRegion (const ImageIORegion &requested) const |
virtual const bool & | GetAbortGenerateData () |
virtual unsigned int | GetActualNumberOfSplitsForWriting (unsigned int numberOfRequestedSplits, const ImageIORegion &pasteRegion, const ImageIORegion &largestPossibleRegion) |
std::string | GetByteOrderAsString (ByteOrder) const |
Command * | GetCommand (unsigned long tag) |
std::string | GetComponentTypeAsString (IOComponentType) const |
bool | GetDebug () const |
virtual std::vector< double > | GetDefaultDirection (unsigned int i) const |
std::string | GetFileTypeAsString (FileType) const |
SizeType | GetImageSizeInBytes () const |
SizeType | GetImageSizeInComponents () const |
SizeType | GetImageSizeInPixels () const |
const MetaDataDictionary & | GetMetaDataDictionary (void) const |
MetaDataDictionary & | GetMetaDataDictionary (void) |
virtual unsigned long | GetMTime () const |
virtual const char * | GetNameOfClass () const |
virtual SizeType | GetPixelStride () const |
std::string | GetPixelTypeAsString (IOPixelType) const |
virtual int | GetReferenceCount () const |
virtual ImageIORegion | GetSplitRegionForWriting (unsigned int ithPiece, unsigned int numberOfActualSplits, const ImageIORegion &pasteRegion, const ImageIORegion &largestPossibleRegion) |
const ArrayOfExtensionsType & | GetSupportedReadExtensions () const |
const ArrayOfExtensionsType & | GetSupportedWriteExtensions () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) const |
void | InvokeEvent (const EventObject &) |
virtual void | Modified () const |
void | Print (std::ostream &os, Indent indent=0) const |
virtual void | Read (void *buffer)=0 |
virtual void | ReadImageInformation ()=0 |
virtual void | Register () const |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) |
virtual void | SetAbortGenerateData (bool _arg) |
void | SetDebug (bool debugFlag) const |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
virtual bool | SetPixelTypeInfo (const std::type_info &ptype) |
virtual void | SetReferenceCount (int) |
virtual bool | SupportsDimension (unsigned long dim) |
virtual void | UnRegister () const |
virtual void | UpdateOutputData () |
void | UpdateProgress (float amount) |
virtual void | Write (const void *buffer)=0 |
virtual void | WriteImageInformation ()=0 |
unsigned long | AddObserver (const EventObject &event, Command *) const |
unsigned long | AddObserver (const EventObject &event, Command *) |
virtual const std::type_info & | GetComponentTypeInfo () const |
itkGetEnumMacro (ComponentType, IOComponentType) | |
itkSetEnumMacro (ComponentType, IOComponentType) | |
virtual unsigned int | GetDimensions (unsigned int i) const |
virtual void | SetDimensions (unsigned int i, unsigned int dim) |
virtual std::vector< double > | GetDirection (unsigned int i) const |
virtual void | SetDirection (unsigned int i, vnl_vector< double > &direction) |
virtual void | SetDirection (unsigned int i, std::vector< double > &direction) |
virtual const char * | GetFileName () const |
virtual void | SetFileName (const char *_arg) |
virtual const ImageIORegion & | GetIORegion () |
virtual void | SetIORegion (ImageIORegion _arg) |
virtual const unsigned int & | GetNumberOfComponents () |
virtual void | SetNumberOfComponents (unsigned int _arg) |
virtual unsigned int | GetNumberOfDimensions () const |
void | SetNumberOfDimensions (unsigned int) |
virtual double | GetOrigin (unsigned int i) const |
virtual void | SetOrigin (unsigned int i, double origin) |
virtual const float & | GetProgress () |
virtual double | GetSpacing (unsigned int i) const |
virtual void | SetSpacing (unsigned int i, double spacing) |
virtual bool | GetUseCompression () |
virtual void | SetUseCompression (bool _arg) |
virtual void | UseCompressionOff () |
virtual void | UseCompressionOn () |
virtual bool | GetUseStreamedReading () |
virtual void | SetUseStreamedReading (bool _arg) |
virtual void | UseStreamedReadingOff () |
virtual void | UseStreamedReadingOn () |
virtual bool | GetUseStreamedWriting () |
virtual void | SetUseStreamedWriting (bool _arg) |
virtual void | UseStreamedWritingOff () |
virtual void | UseStreamedWritingOn () |
itkGetEnumMacro (ByteOrder, ByteOrder) | |
itkSetEnumMacro (ByteOrder, ByteOrder) | |
void | SetByteOrderToBigEndian () |
void | SetByteOrderToLittleEndian () |
itkGetEnumMacro (FileType, FileType) | |
itkSetEnumMacro (FileType, FileType) | |
void | SetFileTypeToASCII () |
void | SetFileTypeToBinary () |
itkGetEnumMacro (PixelType, IOPixelType) | |
itkSetEnumMacro (PixelType, IOPixelType) | |
virtual void | SetProgress (float _arg) |
Static Public Member Functions | |
static void | BreakOnError () |
static Pointer | New () |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static void | SetGlobalWarningDisplay (bool flag) |
Protected Types | |
typedef int | InternalReferenceCountType |
Protected Member Functions | |
void | AddSupportedReadExtension (const char *extension) |
void | AddSupportedWriteExtension (const char *extension) |
void | ComputeStrides () |
virtual void | GenerateData () |
virtual unsigned int | GetActualNumberOfSplitsForWritingCanStreamWrite (unsigned int numberOfRequestedSplits, const ImageIORegion &pasteRegion) const |
virtual unsigned int | GetComponentSize () const |
SizeType | GetComponentStride () const |
virtual unsigned int | GetPixelSize () const |
SizeType | GetRowStride () const |
SizeType | GetSliceStride () const |
virtual ImageIORegion | GetSplitRegionForWritingCanStreamWrite (unsigned int ithPiece, unsigned int numberOfActualSplits, const ImageIORegion &pasteRegion) const |
ImageIOBase () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
void | PrintSelf (std::ostream &os, Indent indent) const |
void | ReadBufferAsASCII (std::istream &os, void *buffer, IOComponentType ctype, SizeType numberOfBytesToBeRead) |
bool | ReadBufferAsBinary (std::istream &os, void *buffer, SizeType numberOfBytesToBeRead) |
virtual void | Reset (const bool freeDynamic=true) |
void | Resize (const unsigned int numDimensions, const unsigned int *dimensions) |
void | WriteBufferAsASCII (std::ostream &os, const void *buffer, IOComponentType ctype, SizeType numberOfBytesToWrite) |
~ImageIOBase () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
Protected Attributes | |
ByteOrder | m_ByteOrder |
IOComponentType | m_ComponentType |
std::vector< unsigned int > | m_Dimensions |
std::vector< std::vector < double > > | m_Direction |
std::string | m_FileName |
FileType | m_FileType |
bool | m_Initialized |
ImageIORegion | m_IORegion |
unsigned int | m_NumberOfComponents |
unsigned int | m_NumberOfDimensions |
std::vector< double > | m_Origin |
IOPixelType | m_PixelType |
InternalReferenceCountType | m_ReferenceCount |
SimpleFastMutexLock | m_ReferenceCountLock |
std::vector< double > | m_Spacing |
std::vector< SizeType > | m_Strides |
bool | m_UseCompression |
bool | m_UseStreamedReading |
bool | m_UseStreamedWriting |
Classes | |
class | UnknownType |
typedef std::vector< std::string > itk::ImageIOBase::ArrayOfExtensionsType |
Type for the list of strings to be used for extensions.
Definition at line 375 of file itkImageIOBase.h.
typedef SmartPointer<const Self> itk::LightProcessObject::ConstPointer [inherited] |
Reimplemented from itk::Object.
Reimplemented in itk::ImageClassifierBase< TInputImage, TClassifiedImage >, itk::ImageGaussianModelEstimator< TInputImage, TMembershipFunction, TTrainingImage >, itk::ImageKmeansModelEstimator< TInputImage, TMembershipFunction >, itk::ImageModelEstimatorBase< TInputImage, TMembershipFunction >, itk::LevelSetNeighborhoodExtractor< TLevelSet >, itk::LevelSetVelocityNeighborhoodExtractor< TLevelSet, TAuxValue, VAuxDimension >, itk::MetaArrayReader, itk::MetaArrayWriter, itk::Statistics::BackPropagationLayer< TMeasurementVector, TTargetVector >, itk::Statistics::BatchSupervisedTrainingFunction< TSample, TTargetVector, ScalarType >, itk::Statistics::CompletelyConnectedWeightSet< TMeasurementVector, TTargetVector >, itk::Statistics::ErrorBackPropagationLearningFunctionBase< LayerType, TTargetVector >, itk::Statistics::ErrorBackPropagationLearningWithMomentum< LayerType, TTargetVector >, itk::Statistics::IterativeSupervisedTrainingFunction< TSample, TTargetVector, ScalarType >, itk::Statistics::LayerBase< TMeasurementVector, TTargetVector >, itk::Statistics::LearningFunctionBase< LayerType, TTargetVector >, itk::Statistics::QuickPropLearningRule< LayerType, TTargetVector >, itk::Statistics::RBFBackPropagationLearningFunction< LayerType, TTargetVector >, itk::Statistics::RBFLayer< TMeasurementVector, TTargetVector >, itk::Statistics::TrainingFunctionBase< TSample, TTargetVector, ScalarType >, itk::Statistics::WeightSetBase< TMeasurementVector, TTargetVector >, itk::Statistics::SampleClassifier< TSample >, itk::Statistics::SampleClassifierWithMask< TSample, TMaskSample >, and itk::Statistics::LearningFunctionBase< LayerType::LayerInterfaceType, TTargetVector >.
Definition at line 78 of file itkLightProcessObject.h.
typedef int itk::LightObject::InternalReferenceCountType [protected, inherited] |
Define the type of the reference count according to the target. This allows the use of atomic operations
Definition at line 139 of file itkLightObject.h.
typedef SmartPointer<Self> itk::ImageIOBase::Pointer |
Reimplemented from itk::LightProcessObject.
Reimplemented in itk::AnalyzeImageIO, itk::BioRadImageIO, itk::BMPImageIO, itk::Brains2MaskImageIO, itk::DicomImageIO, itk::DICOMImageIO2, itk::GDCMImageIO, itk::GE4ImageIO, itk::GE5ImageIO, itk::GEAdwImageIO, itk::GiplImageIO, itk::IPLCommonImageIO, itk::JPEGImageIO, itk::LSMImageIO, itk::MetaImageIO, itk::NiftiImageIO, itk::NrrdImageIO, itk::PNGImageIO, itk::RawImageIO< TPixel, VImageDimension >, itk::SiemensVisionImageIO, itk::StimulateImageIO, itk::TIFFImageIO, itk::VTKImageIO, itk::Bruker2DSEQImageIO, itk::MINC2ImageIO, itk::PhilipsRECImageIO, and itk::VoxBoCUBImageIO.
Definition at line 64 of file itkImageIOBase.h.
typedef ImageIOBase itk::ImageIOBase::Self |
Standard class typedefs.
Reimplemented from itk::LightProcessObject.
Reimplemented in itk::AnalyzeImageIO, itk::BioRadImageIO, itk::BMPImageIO, itk::Brains2MaskImageIO, itk::DicomImageIO, itk::DICOMImageIO2, itk::GDCMImageIO, itk::GE4ImageIO, itk::GE5ImageIO, itk::GEAdwImageIO, itk::GiplImageIO, itk::IPLCommonImageIO, itk::JPEGImageIO, itk::LSMImageIO, itk::MetaImageIO, itk::NiftiImageIO, itk::NrrdImageIO, itk::PNGImageIO, itk::RawImageIO< TPixel, VImageDimension >, itk::SiemensVisionImageIO, itk::StimulateImageIO, itk::TIFFImageIO, itk::VTKImageIO, itk::Bruker2DSEQImageIO, itk::MINC2ImageIO, itk::PhilipsRECImageIO, and itk::VoxBoCUBImageIO.
Definition at line 62 of file itkImageIOBase.h.
typedef std::streamoff itk::ImageIOBase::SizeType |
Type for representing size of bytes, and or positions along a file
Definition at line 264 of file itkImageIOBase.h.
Reimplemented from itk::LightProcessObject.
Reimplemented in itk::AnalyzeImageIO, itk::BioRadImageIO, itk::BMPImageIO, itk::Brains2MaskImageIO, itk::DicomImageIO, itk::DICOMImageIO2, itk::GDCMImageIO, itk::GE4ImageIO, itk::GE5ImageIO, itk::GEAdwImageIO, itk::GiplImageIO, itk::IPLCommonImageIO, itk::JPEGImageIO, itk::LSMImageIO, itk::MetaImageIO, itk::NiftiImageIO, itk::NrrdImageIO, itk::PNGImageIO, itk::RawImageIO< TPixel, VImageDimension >, itk::SiemensVisionImageIO, itk::StimulateImageIO, itk::TIFFImageIO, itk::VTKImageIO, itk::Bruker2DSEQImageIO, itk::MINC2ImageIO, itk::PhilipsRECImageIO, and itk::VoxBoCUBImageIO.
Definition at line 63 of file itkImageIOBase.h.
Enums used to specify byte order; whether Big Endian or Little Endian. Some subclasses use this, some ignore it.
Definition at line 216 of file itkImageIOBase.h.
Enums used to specify write style: whether binary or ASCII. Some subclasses use this, some ignore it.
Definition at line 212 of file itkImageIOBase.h.
Enums used to manipulate the component type. The component type refers to the actual storage class associated with either a SCALAR pixel type or elements of a compound pixel.
Definition at line 91 of file itkImageIOBase.h.
Enums used to manipulate the pixel type. The pixel type provides context for automatic data conversions (for instance, RGB to SCALAR, VECTOR to SCALAR).
UNKNOWNPIXELTYPE | |
SCALAR | |
RGB | |
RGBA | |
OFFSET | |
VECTOR | |
POINT | |
COVARIANTVECTOR | |
SYMMETRICSECONDRANKTENSOR | |
DIFFUSIONTENSOR3D | |
COMPLEX | |
FIXEDARRAY | |
MATRIX |
Definition at line 83 of file itkImageIOBase.h.
itk::ImageIOBase::ImageIOBase | ( | ) | [protected] |
itk::ImageIOBase::~ImageIOBase | ( | ) | [protected] |
virtual void itk::LightProcessObject::AbortGenerateDataOff | ( | ) | [virtual, inherited] |
virtual void itk::LightProcessObject::AbortGenerateDataOn | ( | ) | [virtual, inherited] |
Turn on and off the AbortGenerateData flag.
unsigned long itk::Object::AddObserver | ( | const EventObject & | event, | |
Command * | ||||
) | const [inherited] |
Allow people to add/remove/invoke observers (callbacks) to any ITK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and an itk::Command to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. The memory for the Command becomes the responsibility of this object, so don't pass the same instance of a command to two different objects
unsigned long itk::Object::AddObserver | ( | const EventObject & | event, | |
Command * | ||||
) | [inherited] |
Allow people to add/remove/invoke observers (callbacks) to any ITK object. This is an implementation of the subject/observer design pattern. An observer is added by specifying an event to respond to and an itk::Command to execute. It returns an unsigned long tag which can be used later to remove the event or retrieve the command. The memory for the Command becomes the responsibility of this object, so don't pass the same instance of a command to two different objects
void itk::ImageIOBase::AddSupportedReadExtension | ( | const char * | extension | ) | [protected] |
Insert an extension to the list of supported extensions for reading.
void itk::ImageIOBase::AddSupportedWriteExtension | ( | const char * | extension | ) | [protected] |
Insert an extension to the list of supported extensions for writing.
static void itk::LightObject::BreakOnError | ( | ) | [static, inherited] |
This method is called when itkExceptionMacro executes. It allows the debugger to break on error.
virtual bool itk::ImageIOBase::CanReadFile | ( | const char * | ) | [pure virtual] |
Determine the file type. Returns true if this ImageIO can read the file specified.
Implemented in itk::AnalyzeImageIO, itk::BioRadImageIO, itk::BMPImageIO, itk::Brains2MaskImageIO, itk::DICOMImageIO2, itk::GDCMImageIO, itk::GE4ImageIO, itk::GE5ImageIO, itk::GEAdwImageIO, itk::GiplImageIO, itk::IPLCommonImageIO, itk::JPEGImageIO, itk::LSMImageIO, itk::MetaImageIO, itk::NiftiImageIO, itk::NrrdImageIO, itk::PNGImageIO, itk::RawImageIO< TPixel, VImageDimension >, itk::SiemensVisionImageIO, itk::StimulateImageIO, itk::TIFFImageIO, itk::VTKImageIO, itk::Bruker2DSEQImageIO, itk::MINC2ImageIO, itk::PhilipsRECImageIO, and itk::VoxBoCUBImageIO.
virtual bool itk::ImageIOBase::CanStreamRead | ( | ) | [inline, virtual] |
Determine if the ImageIO can stream reading from this file. Default is false.
Reimplemented in itk::MetaImageIO.
Definition at line 288 of file itkImageIOBase.h.
virtual bool itk::ImageIOBase::CanStreamWrite | ( | ) | [inline, virtual] |
Determine if the ImageIO can stream writing to this file. Default is false.
There are two types of non exclusive streaming: pasteing subregions, and iterative If true then
Reimplemented in itk::MetaImageIO.
Definition at line 312 of file itkImageIOBase.h.
virtual bool itk::ImageIOBase::CanWriteFile | ( | const char * | ) | [pure virtual] |
Determine the file type. Returns true if this ImageIO can read the file specified.
Implemented in itk::AnalyzeImageIO, itk::BioRadImageIO, itk::BMPImageIO, itk::Brains2MaskImageIO, itk::DICOMImageIO2, itk::GDCMImageIO, itk::GiplImageIO, itk::IPLCommonImageIO, itk::JPEGImageIO, itk::LSMImageIO, itk::MetaImageIO, itk::NiftiImageIO, itk::NrrdImageIO, itk::PNGImageIO, itk::RawImageIO< TPixel, VImageDimension >, itk::StimulateImageIO, itk::TIFFImageIO, itk::VTKImageIO, itk::Bruker2DSEQImageIO, itk::MINC2ImageIO, itk::PhilipsRECImageIO, and itk::VoxBoCUBImageIO.
void itk::ImageIOBase::ComputeStrides | ( | ) | [protected] |
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.
virtual LightObject::Pointer itk::Object::CreateAnother | ( | ) | const [virtual, inherited] |
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::LightObject.
virtual void itk::Object::DebugOff | ( | ) | const [virtual, inherited] |
Turn debugging output off.
virtual void itk::Object::DebugOn | ( | ) | const [virtual, inherited] |
Turn debugging output on.
virtual void itk::LightObject::Delete | ( | ) | [virtual, inherited] |
Delete an itk object. This method should always be used to delete an object when the new operator was used to create it. Using the C delete method will not work with reference counting.
virtual void itk::LightProcessObject::GenerateData | ( | void | ) | [inline, protected, virtual, inherited] |
This method causes the filter to generate its output.
Reimplemented in itk::ClassifierBase< TDataContainer >, itk::ImageClassifierBase< TInputImage, TClassifiedImage >, itk::ImageGaussianModelEstimator< TInputImage, TMembershipFunction, TTrainingImage >, itk::ImageKmeansModelEstimator< TInputImage, TMembershipFunction >, itk::ImageModelEstimatorBase< TInputImage, TMembershipFunction >, itk::LevelSetNeighborhoodExtractor< TLevelSet >, itk::Statistics::SampleClassifier< TSample >, itk::Statistics::SampleClassifierWithMask< TSample, TMaskSample >, itk::ClassifierBase< TInputImage >, and itk::ClassifierBase< TSample >.
Definition at line 123 of file itkLightProcessObject.h.
virtual ImageIORegion itk::ImageIOBase::GenerateStreamableReadRegionFromRequestedRegion | ( | const ImageIORegion & | requested | ) | const [virtual] |
Method for supporting streaming. Given a requested region, determine what could be the region that we can read from the file. This is called the streamable region, which will be smaller than the LargestPossibleRegion and greater or equal to the RequestedRegion
Reimplemented in itk::MetaImageIO, and itk::NiftiImageIO.
virtual const bool& itk::LightProcessObject::GetAbortGenerateData | ( | ) | [virtual, inherited] |
Get the AbortGenerateData flag for the process object. Process objects may handle premature termination of execution in different ways.
virtual unsigned int itk::ImageIOBase::GetActualNumberOfSplitsForWriting | ( | unsigned int | numberOfRequestedSplits, | |
const ImageIORegion & | pasteRegion, | |||
const ImageIORegion & | largestPossibleRegion | |||
) | [virtual] |
Before this method is called all the configuration will be done, that is Streaming/PasteRegion/Compression/Filename etc If pasting is being used the number of requested splits is for that region not the largest. The derived ImageIO class should verify that the file is capable of being writen with this configuration. If pasted is enabled and is not support or does not work with the file, then an excepetion should be thrown.
The default implementation depends on CanStreamWrite. If false then 1 is returned (unless pasting is indicated), so that the whole file will be updated in one region. If true then its assumed that any arbitrary region can be writen to any file. So the users request will be respected. If a derived class has more restictive conditions then they should be checked
Reimplemented in itk::MetaImageIO.
virtual unsigned int itk::ImageIOBase::GetActualNumberOfSplitsForWritingCanStreamWrite | ( | unsigned int | numberOfRequestedSplits, | |
const ImageIORegion & | pasteRegion | |||
) | const [protected, virtual] |
an implementation of ImageRegionSplitter:GetNumberOfSplits
std::string itk::ImageIOBase::GetByteOrderAsString | ( | ByteOrder | ) | const |
Convenience method returns the ByteOrder as a string. This can be used for writing output files.
Command* itk::Object::GetCommand | ( | unsigned long | tag | ) | [inherited] |
Get the command associated with the given tag. NOTE: This returns a pointer to a Command, but it is safe to asign this to a Command::Pointer. Since Command inherits from LightObject, at this point in the code, only a pointer or a reference to the Command can be used.
virtual unsigned int itk::ImageIOBase::GetComponentSize | ( | ) | const [protected, virtual] |
Compute the size (in bytes) of the components of a pixel. For example, and RGB pixel of unsigned char would have a component size of 1 byte. This method can be invoked only after the component type is set.
Reimplemented in itk::IPLCommonImageIO.
SizeType itk::ImageIOBase::GetComponentStride | ( | ) | const [protected] |
Convenient method for accessing number of bytes to get to the next pixel component. Returns m_Strides[0].
std::string itk::ImageIOBase::GetComponentTypeAsString | ( | IOComponentType | ) | const |
Convenience method returns the IOComponentType as a string. This can be used for writing output files.
virtual const std::type_info& itk::ImageIOBase::GetComponentTypeInfo | ( | ) | const [virtual] |
Set/Get the component type of the image. This is always a native type.
Reimplemented in itk::IPLCommonImageIO.
bool itk::Object::GetDebug | ( | ) | const [inherited] |
Get the value of the debug flag.
virtual std::vector<double> itk::ImageIOBase::GetDefaultDirection | ( | unsigned int | i | ) | const [virtual] |
Return the directions to be assigned by default to recipient images whose dimension is smaller than the image dimension in file.
Reimplemented in itk::AnalyzeImageIO.
virtual unsigned int itk::ImageIOBase::GetDimensions | ( | unsigned int | i | ) | const [inline, virtual] |
Set/Get the image dimensions in the x, y, z, etc. directions. GetDimensions() is typically used after reading the data; the SetDimensions() is used prior to writing the data.
Definition at line 105 of file itkImageIOBase.h.
virtual std::vector<double> itk::ImageIOBase::GetDirection | ( | unsigned int | i | ) | const [inline, virtual] |
Set/Get the image direction on an axis-by-axis basis. The SetDirection() method is required when writing the image.
Reimplemented in itk::AnalyzeImageIO.
Definition at line 131 of file itkImageIOBase.h.
virtual const char* itk::ImageIOBase::GetFileName | ( | ) | const [virtual] |
Set/Get the name of the file to be read.
std::string itk::ImageIOBase::GetFileTypeAsString | ( | FileType | ) | const |
Convenience method returns the FileType as a string. This can be used for writing output files.
static bool itk::Object::GetGlobalWarningDisplay | ( | ) | [static, inherited] |
This is a global flag that controls whether any debug, warning or error messages are displayed.
SizeType itk::ImageIOBase::GetImageSizeInBytes | ( | ) | const |
Return the number of bytes in the image.
SizeType itk::ImageIOBase::GetImageSizeInComponents | ( | ) | const |
Return the number of pixels times the number of components in the image.
SizeType itk::ImageIOBase::GetImageSizeInPixels | ( | ) | const |
Return the number of pixels in the image.
virtual const ImageIORegion& itk::ImageIOBase::GetIORegion | ( | ) | [virtual] |
Specify the region of the image data to either read or write. The IORegion specifies the part of the image to read or write. Regions are defined with an index and a size vector. These vectors define the start (lower-left corner) and length of the region within the image. Make sure that the IORegion lies within the image.
const MetaDataDictionary& itk::Object::GetMetaDataDictionary | ( | void | ) | const [inherited] |
MetaDataDictionary& itk::Object::GetMetaDataDictionary | ( | void | ) | [inherited] |
virtual unsigned long itk::Object::GetMTime | ( | ) | const [virtual, inherited] |
Return this objects modified time.
Reimplemented in itk::ImageRegistrationMethod< TFixedImage, TMovingImage >, itk::ImageToSpatialObjectRegistrationMethod< TFixedImage, TMovingSpatialObject >, itk::MultiResolutionImageRegistrationMethod< TFixedImage, TMovingImage >, itk::PointSetToImageRegistrationMethod< TFixedPointSet, TMovingImage >, itk::PointSetToPointSetRegistrationMethod< TFixedPointSet, TMovingPointSet >, itk::DeformationFieldSource< TOutputImage >, itk::InverseDeformationFieldImageFilter< TInputImage, TOutputImage >, itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >, itk::VectorResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >, itk::BoundingBox< TPointIdentifier, VPointDimension, TCoordRep, TPointsContainer >, itk::ImageAdaptor< TImage, TAccessor >, itk::ResampleImageFilter< TInputImage, TOutputImage, TInterpolatorPrecisionType >, itk::TransformToDeformationFieldSource< TOutputImage, TTransformPrecisionType >, itk::ImageSpatialObject< TDimension, TPixelType >, itk::MeshSpatialObject< TMesh >, itk::SceneSpatialObject< TSpaceDimension >, itk::SpatialObject< TDimension >, itk::ImageAdaptor< TImage, itk::Accessor::AsinPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::AbsPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::LogPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ComplexToPhasePixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::Log10PixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ExpPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::AddPixelAccessor< TImage::PixelType > >, itk::ImageAdaptor< itk::VectorImage< TPixelType, Dimension >, itk::Accessor::VectorImageToImagePixelAccessor< TPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::RGBToVectorPixelAccessor< TImage::PixelType::ComponentType > >, itk::ImageAdaptor< TImage, itk::PixelAccessor< TInternalType, TExternalType > >, itk::ImageAdaptor< TImage, itk::Accessor::SqrtPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::AcosPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ComplexToModulusPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ExpNegativePixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::VectorToRGBPixelAccessor< TImage::PixelType::ValueType > >, itk::ImageAdaptor< TImage, itk::Accessor::TanPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ComplexToRealPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::RGBToLuminancePixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::AtanPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::SinPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ComplexToImaginaryPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::CosPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageSpatialObject< TDimension, unsigned char >, itk::SpatialObject< 3 >, and itk::SpatialObject< ::itk::GetMeshDimension< TMesh >::PointDimension >.
Referenced by itk::SpatialObject< ::itk::GetMeshDimension< TMesh >::PointDimension >::GetObjectMTime().
virtual const char* itk::ImageIOBase::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::LightProcessObject.
Reimplemented in itk::AnalyzeImageIO, itk::BioRadImageIO, itk::BMPImageIO, itk::Brains2MaskImageIO, itk::DicomImageIO, itk::DICOMImageIO2, itk::GDCMImageIO, itk::GE4ImageIO, itk::GE5ImageIO, itk::GEAdwImageIO, itk::GiplImageIO, itk::IPLCommonImageIO, itk::JPEGImageIO, itk::LSMImageIO, itk::MetaImageIO, itk::NiftiImageIO, itk::NrrdImageIO, itk::PNGImageIO, itk::RawImageIO< TPixel, VImageDimension >, itk::SiemensVisionImageIO, itk::StimulateImageIO, itk::TIFFImageIO, itk::VTKImageIO, itk::Bruker2DSEQImageIO, itk::MINC2ImageIO, itk::PhilipsRECImageIO, and itk::VoxBoCUBImageIO.
virtual const unsigned int& itk::ImageIOBase::GetNumberOfComponents | ( | ) | [virtual] |
Set/Get the number of components per pixel in the image. This may be set by the reading process. For SCALAR pixel types, NumberOfComponents will be 1. For other pixel types, NumberOfComponents will be greater than or equal to one.
virtual unsigned int itk::ImageIOBase::GetNumberOfDimensions | ( | ) | const [virtual] |
Set/Get the number of independent variables (dimensions) in the image being read or written. Note this is not necessarily what is written, rather the IORegion controls that.
virtual double itk::ImageIOBase::GetOrigin | ( | unsigned int | i | ) | const [inline, virtual] |
Set/Get the image origin on a axis-by-axis basis. The SetOrigin() method is required when writing the image.
Definition at line 112 of file itkImageIOBase.h.
virtual unsigned int itk::ImageIOBase::GetPixelSize | ( | ) | const [protected, virtual] |
Compute the size (in bytes) of the pixel. For example, and RGB pixel of unsigned char would have size 3 bytes.
virtual SizeType itk::ImageIOBase::GetPixelStride | ( | ) | const [virtual] |
Convenient method for accessing the number of bytes to get to the next pixel. Returns m_Strides[1];
std::string itk::ImageIOBase::GetPixelTypeAsString | ( | IOPixelType | ) | const |
Convenience method returns the IOPixelType as a string. This can be used for writing output files.
virtual const float& itk::LightProcessObject::GetProgress | ( | ) | [virtual, inherited] |
Get the execution progress of a process object. The progress is a floating number between (0,1), 0 meaning no progress; 1 meaning the filter has completed execution.
virtual int itk::LightObject::GetReferenceCount | ( | ) | const [inline, virtual, inherited] |
Gets the reference count on this object.
Definition at line 106 of file itkLightObject.h.
SizeType itk::ImageIOBase::GetRowStride | ( | ) | const [protected] |
Convenient method for accessing the number of bytes to get to the next row. Returns m_Strides[2].
SizeType itk::ImageIOBase::GetSliceStride | ( | ) | const [protected] |
Convenient method for accessing the number of bytes to get to the next slice. Returns m_Strides[3].
virtual double itk::ImageIOBase::GetSpacing | ( | unsigned int | i | ) | const [inline, virtual] |
Set/Get the image spacing on an axis-by-axis basis. The SetSpacing() method is required when writing the image.
Definition at line 121 of file itkImageIOBase.h.
virtual ImageIORegion itk::ImageIOBase::GetSplitRegionForWriting | ( | unsigned int | ithPiece, | |
unsigned int | numberOfActualSplits, | |||
const ImageIORegion & | pasteRegion, | |||
const ImageIORegion & | largestPossibleRegion | |||
) | [virtual] |
returns the ith IORegion
numberOfActualSplits should be the value returned from GetActualNumberOfSplitsForWriting with the same parameters
Derieved classes should overload this method to return a compatible region
Reimplemented in itk::MetaImageIO.
virtual ImageIORegion itk::ImageIOBase::GetSplitRegionForWritingCanStreamWrite | ( | unsigned int | ithPiece, | |
unsigned int | numberOfActualSplits, | |||
const ImageIORegion & | pasteRegion | |||
) | const [protected, virtual] |
an implementation of ImageRegionSplitter:GetSplit
const ArrayOfExtensionsType& itk::ImageIOBase::GetSupportedReadExtensions | ( | ) | const |
This method returns an array with the list of filename extensions supported for reading by this ImageIO class. This is intended to facilitate GUI and application level integration.
const ArrayOfExtensionsType& itk::ImageIOBase::GetSupportedWriteExtensions | ( | ) | const |
This method returns an array with the list of filename extensions supported for writing by this ImageIO class. This is intended to facilitate GUI and application level integration.
virtual bool itk::ImageIOBase::GetUseCompression | ( | ) | [virtual] |
Set/Get a boolean to use the compression or not.
virtual bool itk::ImageIOBase::GetUseStreamedReading | ( | ) | [virtual] |
Set/Get a boolean to use streaming while reading or not.
virtual bool itk::ImageIOBase::GetUseStreamedWriting | ( | ) | [virtual] |
Set/Get a boolean to use streaming while writing or not.
static void itk::Object::GlobalWarningDisplayOff | ( | ) | [inline, static, inherited] |
This is a global flag that controls whether any debug, warning or error messages are displayed.
Definition at line 100 of file itkObject.h.
References itk::Object::SetGlobalWarningDisplay().
static void itk::Object::GlobalWarningDisplayOn | ( | ) | [inline, static, inherited] |
This is a global flag that controls whether any debug, warning or error messages are displayed.
Definition at line 98 of file itkObject.h.
References itk::Object::SetGlobalWarningDisplay().
bool itk::Object::HasObserver | ( | const EventObject & | event | ) | const [inherited] |
Return true if an observer is registered for this event.
void itk::Object::InvokeEvent | ( | const EventObject & | ) | const [inherited] |
Call Execute on all the Commands observing this event id. The actions triggered by this call doesn't modify this object.
void itk::Object::InvokeEvent | ( | const EventObject & | ) | [inherited] |
Call Execute on all the Commands observing this event id.
These methods indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. Note: most UNIX machines are BigEndian while PC's and VAX's are LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetByteOrderToLittleEndian() otherwise SetByteOrderToBigEndian(). Some ImageIOBase subclasses ignore these methods.
These methods control whether the file is written binary or ASCII. Many file formats (i.e., subclasses) ignore this flag.
itk::ImageIOBase::itkGetEnumMacro | ( | ComponentType | , | |
IOComponentType | ||||
) |
Set/Get the component type of the image. This is always a native type.
itk::ImageIOBase::itkGetEnumMacro | ( | PixelType | , | |
IOPixelType | ||||
) |
Set/Get the type of the pixel. The PixelTypes provides context to the IO mechanisms for data conversions. PixelTypes can be SCALAR, RGB, RGBA, VECTOR, COVARIANTVECTOR, POINT, INDEX. If the PIXELTYPE is SCALAR, then the NumberOfComponents should be 1. Anyother of PIXELTYPE will have more than one component.
These methods indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. Note: most UNIX machines are BigEndian while PC's and VAX's are LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetByteOrderToLittleEndian() otherwise SetByteOrderToBigEndian(). Some ImageIOBase subclasses ignore these methods.
These methods control whether the file is written binary or ASCII. Many file formats (i.e., subclasses) ignore this flag.
itk::ImageIOBase::itkSetEnumMacro | ( | ComponentType | , | |
IOComponentType | ||||
) |
Set/Get the component type of the image. This is always a native type.
itk::ImageIOBase::itkSetEnumMacro | ( | PixelType | , | |
IOPixelType | ||||
) |
Set/Get the type of the pixel. The PixelTypes provides context to the IO mechanisms for data conversions. PixelTypes can be SCALAR, RGB, RGBA, VECTOR, COVARIANTVECTOR, POINT, INDEX. If the PIXELTYPE is SCALAR, then the NumberOfComponents should be 1. Anyother of PIXELTYPE will have more than one component.
virtual void itk::Object::Modified | ( | ) | const [virtual, inherited] |
Update the modification time for this object. Many filters rely on the modification time to determine if they need to recompute their data.
Reimplemented in itk::NormalizeImageFilter< TInputImage, TOutputImage >, itk::ImageAdaptor< TImage, TAccessor >, itk::MiniPipelineSeparableImageFilter< TInputImage, TOutputImage, TFilter >, itk::GrayscaleDilateImageFilter< TInputImage, TOutputImage, TKernel >, itk::GrayscaleErodeImageFilter< TInputImage, TOutputImage, TKernel >, itk::GrayscaleMorphologicalClosingImageFilter< TInputImage, TOutputImage, TKernel >, itk::GrayscaleMorphologicalOpeningImageFilter< TInputImage, TOutputImage, TKernel >, itk::MorphologicalGradientImageFilter< TInputImage, TOutputImage, TKernel >, itk::ImageAdaptor< TImage, itk::Accessor::AsinPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::AbsPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::LogPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ComplexToPhasePixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::Log10PixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ExpPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::AddPixelAccessor< TImage::PixelType > >, itk::ImageAdaptor< itk::VectorImage< TPixelType, Dimension >, itk::Accessor::VectorImageToImagePixelAccessor< TPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::RGBToVectorPixelAccessor< TImage::PixelType::ComponentType > >, itk::ImageAdaptor< TImage, itk::PixelAccessor< TInternalType, TExternalType > >, itk::ImageAdaptor< TImage, itk::Accessor::SqrtPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::AcosPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ComplexToModulusPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ExpNegativePixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::VectorToRGBPixelAccessor< TImage::PixelType::ValueType > >, itk::ImageAdaptor< TImage, itk::Accessor::TanPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ComplexToRealPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::RGBToLuminancePixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::AtanPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::SinPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::ComplexToImaginaryPixelAccessor< TImage::PixelType, TOutputPixelType > >, itk::ImageAdaptor< TImage, itk::Accessor::CosPixelAccessor< TImage::PixelType, TOutputPixelType > >, and itk::MiniPipelineSeparableImageFilter< TInputImage, TOutputImage, itk::RankImageFilter< TInputImage, TInputImage, itk::FlatStructuringElement< ::itk::GetImageDimension< TInputImage >::ImageDimension > > >.
Referenced by itk::NarrowBandImageFilterBase< TInputImage, itk::Image< TOutputPixelType,::itk::GetImageDimension< TInputImage >::ImageDimension > >::InsertNarrowBandNode(), itk::MatrixOffsetTransformBase< TScalarType, 3, 3 >::SetCenter(), itk::HistogramAlgorithmBase< TInputHistogram >::SetInputHistogram(), itk::MatrixOffsetTransformBase< TScalarType, 3, 3 >::SetMatrix(), itk::NarrowBandImageFilterBase< TInputImage, itk::Image< TOutputPixelType,::itk::GetImageDimension< TInputImage >::ImageDimension > >::SetNarrowBand(), itk::NarrowBandImageFilterBase< TInputImage, itk::Image< TOutputPixelType,::itk::GetImageDimension< TInputImage >::ImageDimension > >::SetNarrowBandInnerRadius(), itk::NarrowBandImageFilterBase< TInputImage, itk::Image< TOutputPixelType,::itk::GetImageDimension< TInputImage >::ImageDimension > >::SetNarrowBandTotalRadius(), itk::MatrixOffsetTransformBase< TScalarType, 3, 3 >::SetOffset(), itk::ThresholdLabelerImageFilter< TInputImage, TOutputImage >::SetRealThresholds(), itk::CollidingFrontsImageFilter< TInputImage, TOutputImage >::SetSeedPoints1(), itk::CollidingFrontsImageFilter< TInputImage, TOutputImage >::SetSeedPoints2(), itk::NonUniformBSpline< TDimension >::SetSplineOrder(), itk::ThresholdLabelerImageFilter< TInputImage, TOutputImage >::SetThresholds(), itk::Statistics::GoodnessOfFitFunctionBase< TInputHistogram >::SetTotalObservedScale(), and itk::MatrixOffsetTransformBase< TScalarType, 3, 3 >::SetTranslation().
static Pointer itk::LightProcessObject::New | ( | ) | [static, inherited] |
Method for creation through the object factory.
Reimplemented from itk::Object.
Reimplemented in itk::ImageClassifierBase< TInputImage, TClassifiedImage >, itk::ImageGaussianModelEstimator< TInputImage, TMembershipFunction, TTrainingImage >, itk::ImageKmeansModelEstimator< TInputImage, TMembershipFunction >, itk::LevelSetNeighborhoodExtractor< TLevelSet >, itk::LevelSetVelocityNeighborhoodExtractor< TLevelSet, TAuxValue, VAuxDimension >, itk::AnalyzeImageIO, itk::BioRadImageIO, itk::BMPImageIO, itk::Brains2MaskImageIO, itk::DicomImageIO, itk::DICOMImageIO2, itk::GDCMImageIO, itk::GE4ImageIO, itk::GE5ImageIO, itk::GEAdwImageIO, itk::GiplImageIO, itk::IPLCommonImageIO, itk::JPEGImageIO, itk::LSMImageIO, itk::MetaArrayReader, itk::MetaArrayWriter, itk::MetaImageIO, itk::NiftiImageIO, itk::NrrdImageIO, itk::PNGImageIO, itk::PolygonGroupSpatialObjectXMLFileReader, itk::PolygonGroupSpatialObjectXMLFileWriter, itk::RawImageIO< TPixel, VImageDimension >, itk::SiemensVisionImageIO, itk::StimulateImageIO, itk::TIFFImageIO, itk::TransformFileReader, itk::TransformFileWriter, itk::VTKImageIO, itk::Statistics::BackPropagationLayer< TMeasurementVector, TTargetVector >, itk::Statistics::BatchSupervisedTrainingFunction< TSample, TTargetVector, ScalarType >, itk::Statistics::CompletelyConnectedWeightSet< TMeasurementVector, TTargetVector >, itk::Statistics::ErrorBackPropagationLearningFunctionBase< LayerType, TTargetVector >, itk::Statistics::ErrorBackPropagationLearningWithMomentum< LayerType, TTargetVector >, itk::Statistics::IterativeSupervisedTrainingFunction< TSample, TTargetVector, ScalarType >, itk::Statistics::QuickPropLearningRule< LayerType, TTargetVector >, itk::Statistics::RBFBackPropagationLearningFunction< LayerType, TTargetVector >, itk::Statistics::RBFLayer< TMeasurementVector, TTargetVector >, itk::Statistics::TrainingFunctionBase< TSample, TTargetVector, ScalarType >, itk::Statistics::SampleClassifier< TSample >, itk::Statistics::SampleClassifierWithMask< TSample, TMaskSample >, itk::Bruker2DSEQImageIO, itk::MatlabTransformIO, itk::MINC2ImageIO, itk::PhilipsRECImageIO, itk::TransformFileReader, itk::TransformFileWriter, itk::TxtTransformIO, and itk::VoxBoCUBImageIO.
void itk::LightObject::Print | ( | std::ostream & | os, | |
Indent | indent = 0 | |||
) | const [inherited] |
Cause the object to print itself out.
Referenced by itk::WeakPointer< itk::ProcessObject >::Print(), and itk::SmartPointer< itk::MutualInformationImageToImageMetric >::Print().
virtual void itk::LightObject::PrintHeader | ( | std::ostream & | os, | |
Indent | indent | |||
) | const [protected, virtual, inherited] |
bool itk::Object::PrintObservers | ( | std::ostream & | os, | |
Indent | indent | |||
) | const [protected, inherited] |
void itk::ImageIOBase::PrintSelf | ( | std::ostream & | os, | |
Indent | indent | |||
) | const [protected, virtual] |
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::LightProcessObject.
Reimplemented in itk::AnalyzeImageIO, itk::BioRadImageIO, itk::BMPImageIO, itk::Brains2MaskImageIO, itk::DICOMImageIO2, itk::GDCMImageIO, itk::GiplImageIO, itk::IPLCommonImageIO, itk::JPEGImageIO, itk::LSMImageIO, itk::MetaImageIO, itk::NiftiImageIO, itk::NrrdImageIO, itk::PNGImageIO, itk::RawImageIO< TPixel, VImageDimension >, itk::StimulateImageIO, itk::TIFFImageIO, itk::VTKImageIO, itk::Bruker2DSEQImageIO, itk::MINC2ImageIO, itk::PhilipsRECImageIO, and itk::VoxBoCUBImageIO.
virtual void itk::LightObject::PrintTrailer | ( | std::ostream & | os, | |
Indent | indent | |||
) | const [protected, virtual, inherited] |
virtual void itk::ImageIOBase::Read | ( | void * | buffer | ) | [pure virtual] |
Reads the data from disk into the memory buffer provided.
Implemented in itk::AnalyzeImageIO, itk::BioRadImageIO, itk::BMPImageIO, itk::Brains2MaskImageIO, itk::DICOMImageIO2, itk::GDCMImageIO, itk::GiplImageIO, itk::IPLCommonImageIO, itk::JPEGImageIO, itk::LSMImageIO, itk::MetaImageIO, itk::NiftiImageIO, itk::NrrdImageIO, itk::PNGImageIO, itk::RawImageIO< TPixel, VImageDimension >, itk::StimulateImageIO, itk::TIFFImageIO, itk::VTKImageIO, itk::Bruker2DSEQImageIO, itk::MINC2ImageIO, itk::PhilipsRECImageIO, and itk::VoxBoCUBImageIO.
void itk::ImageIOBase::ReadBufferAsASCII | ( | std::istream & | os, | |
void * | buffer, | |||
IOComponentType | ctype, | |||
SizeType | numberOfBytesToBeRead | |||
) | [protected] |
Convenient method to read a buffer as ASCII text.
bool itk::ImageIOBase::ReadBufferAsBinary | ( | std::istream & | os, | |
void * | buffer, | |||
SizeType | numberOfBytesToBeRead | |||
) | [protected] |
Convenient method to read a buffer as binary. Return true on success.
virtual void itk::ImageIOBase::ReadImageInformation | ( | ) | [pure virtual] |
Read the spacing and dimentions of the image. Assumes SetFileName has been called with a valid file name.
Implemented in itk::AnalyzeImageIO, itk::BioRadImageIO, itk::BMPImageIO, itk::Brains2MaskImageIO, itk::DICOMImageIO2, itk::GDCMImageIO, itk::GiplImageIO, itk::IPLCommonImageIO, itk::JPEGImageIO, itk::LSMImageIO, itk::MetaImageIO, itk::NiftiImageIO, itk::NrrdImageIO, itk::PNGImageIO, itk::RawImageIO< TPixel, VImageDimension >, itk::StimulateImageIO, itk::TIFFImageIO, itk::VTKImageIO, itk::Bruker2DSEQImageIO, itk::MINC2ImageIO, itk::PhilipsRECImageIO, and itk::VoxBoCUBImageIO.
virtual void itk::Object::Register | ( | ) | const [virtual, inherited] |
Increase the reference count (mark as used by another object).
Reimplemented from itk::LightObject.
void itk::Object::RemoveAllObservers | ( | ) | [inherited] |
Remove all observers .
void itk::Object::RemoveObserver | ( | unsigned long | tag | ) | [inherited] |
Remove the observer with this tag value.
virtual void itk::ImageIOBase::Reset | ( | const bool | freeDynamic = true |
) | [protected, virtual] |
Return the object to an initialized state, ready to be used
void itk::ImageIOBase::Resize | ( | const unsigned int | numDimensions, | |
const unsigned int * | dimensions | |||
) | [protected] |
Resize the ImageIOBase object to new dimensions.
virtual void itk::LightProcessObject::SetAbortGenerateData | ( | bool | _arg | ) | [virtual, inherited] |
Set the AbortGenerateData flag for the process object. Process objects may handle premature termination of execution in different ways.
void itk::ImageIOBase::SetByteOrderToBigEndian | ( | ) | [inline] |
These methods indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. Note: most UNIX machines are BigEndian while PC's and VAX's are LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetByteOrderToLittleEndian() otherwise SetByteOrderToBigEndian(). Some ImageIOBase subclasses ignore these methods.
Definition at line 245 of file itkImageIOBase.h.
void itk::ImageIOBase::SetByteOrderToLittleEndian | ( | ) | [inline] |
These methods indicate the byte ordering of the file you are trying to read in. These methods will then either swap or not swap the bytes depending on the byte ordering of the machine it is being run on. For example, reading in a BigEndian file on a BigEndian machine will result in no swapping. Trying to read the same file on a LittleEndian machine will result in swapping. Note: most UNIX machines are BigEndian while PC's and VAX's are LittleEndian. So if the file you are reading in was generated on a VAX or PC, SetByteOrderToLittleEndian() otherwise SetByteOrderToBigEndian(). Some ImageIOBase subclasses ignore these methods.
Definition at line 249 of file itkImageIOBase.h.
void itk::Object::SetDebug | ( | bool | debugFlag | ) | const [inherited] |
Set the value of the debug flag. A non-zero value turns debugging on.
virtual void itk::ImageIOBase::SetDimensions | ( | unsigned int | i, | |
unsigned int | dim | |||
) | [virtual] |
Set/Get the image dimensions in the x, y, z, etc. directions. GetDimensions() is typically used after reading the data; the SetDimensions() is used prior to writing the data.
virtual void itk::ImageIOBase::SetDirection | ( | unsigned int | i, | |
vnl_vector< double > & | direction | |||
) | [virtual] |
Set/Get the image direction on an axis-by-axis basis. The SetDirection() method is required when writing the image.
virtual void itk::ImageIOBase::SetDirection | ( | unsigned int | i, | |
std::vector< double > & | direction | |||
) | [virtual] |
Set/Get the image direction on an axis-by-axis basis. The SetDirection() method is required when writing the image.
virtual void itk::ImageIOBase::SetFileName | ( | const char * | _arg | ) | [virtual] |
Set/Get the name of the file to be read.
void itk::ImageIOBase::SetFileTypeToASCII | ( | ) | [inline] |
These methods control whether the file is written binary or ASCII. Many file formats (i.e., subclasses) ignore this flag.
Definition at line 222 of file itkImageIOBase.h.
void itk::ImageIOBase::SetFileTypeToBinary | ( | ) | [inline] |
These methods control whether the file is written binary or ASCII. Many file formats (i.e., subclasses) ignore this flag.
Definition at line 226 of file itkImageIOBase.h.
static void itk::Object::SetGlobalWarningDisplay | ( | bool | flag | ) | [static, inherited] |
This is a global flag that controls whether any debug, warning or error messages are displayed.
Referenced by itk::Object::GlobalWarningDisplayOff(), and itk::Object::GlobalWarningDisplayOn().
virtual void itk::ImageIOBase::SetIORegion | ( | ImageIORegion | _arg | ) | [virtual] |
Specify the region of the image data to either read or write. The IORegion specifies the part of the image to read or write. Regions are defined with an index and a size vector. These vectors define the start (lower-left corner) and length of the region within the image. Make sure that the IORegion lies within the image.
void itk::Object::SetMetaDataDictionary | ( | const MetaDataDictionary & | rhs | ) | [inherited] |
virtual void itk::ImageIOBase::SetNumberOfComponents | ( | unsigned int | _arg | ) | [virtual] |
Set/Get the number of components per pixel in the image. This may be set by the reading process. For SCALAR pixel types, NumberOfComponents will be 1. For other pixel types, NumberOfComponents will be greater than or equal to one.
void itk::ImageIOBase::SetNumberOfDimensions | ( | unsigned | int | ) |
Set/Get the number of independent variables (dimensions) in the image being read or written. Note this is not necessarily what is written, rather the IORegion controls that.
virtual void itk::ImageIOBase::SetOrigin | ( | unsigned int | i, | |
double | origin | |||
) | [virtual] |
Set/Get the image origin on a axis-by-axis basis. The SetOrigin() method is required when writing the image.
virtual bool itk::ImageIOBase::SetPixelTypeInfo | ( | const std::type_info & | ptype | ) | [virtual] |
SetPixelTypeInfo is used by writers to convert from an ITK strongly typed pixel to a ImageIO (weaker) typed pixel. This function sets these PixelType, ComponentType, and NumberOfComponents based on RTTI type_info structure passed in. The function returns false if the pixel type is not supported.
virtual void itk::LightProcessObject::SetProgress | ( | float | _arg | ) | [virtual, inherited] |
Set the execution progress of a process object. The progress is a floating number between (0,1), 0 meaning no progress; 1 meaning the filter has completed execution.
virtual void itk::Object::SetReferenceCount | ( | int | ) | [virtual, inherited] |
Sets the reference count (use with care)
Reimplemented from itk::LightObject.
virtual void itk::ImageIOBase::SetSpacing | ( | unsigned int | i, | |
double | spacing | |||
) | [virtual] |
Set/Get the image spacing on an axis-by-axis basis. The SetSpacing() method is required when writing the image.
virtual void itk::ImageIOBase::SetUseCompression | ( | bool | _arg | ) | [virtual] |
Set/Get a boolean to use the compression or not.
virtual void itk::ImageIOBase::SetUseStreamedReading | ( | bool | _arg | ) | [virtual] |
Set/Get a boolean to use streaming while reading or not.
virtual void itk::ImageIOBase::SetUseStreamedWriting | ( | bool | _arg | ) | [virtual] |
Set/Get a boolean to use streaming while writing or not.
virtual bool itk::ImageIOBase::SupportsDimension | ( | unsigned long | dim | ) | [inline, virtual] |
The different types of ImageIO's can support data of varying dimensionality. For example, some file formats are strictly 2D while others can support 2D, 3D, or even n-D. This method returns true/false as to whether the ImageIO can support the dimension indicated.
Reimplemented in itk::MetaImageIO, itk::NrrdImageIO, and itk::RawImageIO< TPixel, VImageDimension >.
Definition at line 333 of file itkImageIOBase.h.
virtual void itk::Object::UnRegister | ( | ) | const [virtual, inherited] |
Decrease the reference count (release by another object).
Reimplemented from itk::LightObject.
Referenced by itk::SmartPointer< itk::MutualInformationImageToImageMetric >::operator=().
virtual void itk::LightProcessObject::UpdateOutputData | ( | ) | [virtual, inherited] |
Actually generate new output.
void itk::LightProcessObject::UpdateProgress | ( | float | amount | ) | [inherited] |
Update the progress of the process object. If a ProgressMethod exists, executes it. Then set the Progress ivar to amount. The parameter amount should range between (0,1).
virtual void itk::ImageIOBase::UseCompressionOff | ( | ) | [virtual] |
Set/Get a boolean to use the compression or not.
virtual void itk::ImageIOBase::UseCompressionOn | ( | ) | [virtual] |
Set/Get a boolean to use the compression or not.
virtual void itk::ImageIOBase::UseStreamedReadingOff | ( | ) | [virtual] |
Set/Get a boolean to use streaming while reading or not.
virtual void itk::ImageIOBase::UseStreamedReadingOn | ( | ) | [virtual] |
Set/Get a boolean to use streaming while reading or not.
virtual void itk::ImageIOBase::UseStreamedWritingOff | ( | ) | [virtual] |
Set/Get a boolean to use streaming while writing or not.
virtual void itk::ImageIOBase::UseStreamedWritingOn | ( | ) | [virtual] |
Set/Get a boolean to use streaming while writing or not.
virtual void itk::ImageIOBase::Write | ( | const void * | buffer | ) | [pure virtual] |
Writes the data to disk from the memory buffer provided. Make sure that the IORegions has been set properly. The buffer is cast to a pointer to the beginning of the image data.
Implemented in itk::AnalyzeImageIO, itk::BioRadImageIO, itk::BMPImageIO, itk::Brains2MaskImageIO, itk::DICOMImageIO2, itk::GDCMImageIO, itk::GiplImageIO, itk::IPLCommonImageIO, itk::JPEGImageIO, itk::LSMImageIO, itk::MetaImageIO, itk::NiftiImageIO, itk::NrrdImageIO, itk::PNGImageIO, itk::RawImageIO< TPixel, VImageDimension >, itk::StimulateImageIO, itk::TIFFImageIO, itk::VTKImageIO, itk::Bruker2DSEQImageIO, itk::MINC2ImageIO, itk::PhilipsRECImageIO, and itk::VoxBoCUBImageIO.
void itk::ImageIOBase::WriteBufferAsASCII | ( | std::ostream & | os, | |
const void * | buffer, | |||
IOComponentType | ctype, | |||
SizeType | numberOfBytesToWrite | |||
) | [protected] |
Convenient method to write a buffer as ASCII text.
virtual void itk::ImageIOBase::WriteImageInformation | ( | ) | [pure virtual] |
Writes the spacing and dimentions of the image. Assumes SetFileName has been called with a valid file name.
Implemented in itk::AnalyzeImageIO, itk::BioRadImageIO, itk::BMPImageIO, itk::Brains2MaskImageIO, itk::DICOMImageIO2, itk::GDCMImageIO, itk::GiplImageIO, itk::IPLCommonImageIO, itk::JPEGImageIO, itk::LSMImageIO, itk::MetaImageIO, itk::NiftiImageIO, itk::NrrdImageIO, itk::PNGImageIO, itk::RawImageIO< TPixel, VImageDimension >, itk::StimulateImageIO, itk::TIFFImageIO, itk::VTKImageIO, itk::Bruker2DSEQImageIO, itk::MINC2ImageIO, itk::PhilipsRECImageIO, and itk::VoxBoCUBImageIO.
ByteOrder itk::ImageIOBase::m_ByteOrder [protected] |
Big or Little Endian, and the type of the file. (May be ignored.)
Definition at line 403 of file itkImageIOBase.h.
IOComponentType itk::ImageIOBase::m_ComponentType [protected] |
Used internally to keep track of the type of the component. It is set when ComputeStrides() is invoked.
Definition at line 400 of file itkImageIOBase.h.
std::vector<unsigned int> itk::ImageIOBase::m_Dimensions [protected] |
The array which stores the number of pixels in the x, y, z directions.
Definition at line 433 of file itkImageIOBase.h.
std::vector<std::vector<double> > itk::ImageIOBase::m_Direction [protected] |
The arrays which store the direction cosines of the image.
Definition at line 443 of file itkImageIOBase.h.
std::string itk::ImageIOBase::m_FileName [protected] |
Filename to read
Definition at line 410 of file itkImageIOBase.h.
FileType itk::ImageIOBase::m_FileType [protected] |
Definition at line 404 of file itkImageIOBase.h.
bool itk::ImageIOBase::m_Initialized [protected] |
Does the ImageIOBase object have enough info to be of use?
Definition at line 407 of file itkImageIOBase.h.
ImageIORegion itk::ImageIOBase::m_IORegion [protected] |
The region to read or write. The region contains information about the data within the region to read or write.
Definition at line 430 of file itkImageIOBase.h.
unsigned int itk::ImageIOBase::m_NumberOfComponents [protected] |
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 414 of file itkImageIOBase.h.
unsigned int itk::ImageIOBase::m_NumberOfDimensions [protected] |
The number of independent dimensions in the image.
Definition at line 417 of file itkImageIOBase.h.
std::vector<double> itk::ImageIOBase::m_Origin [protected] |
The array which stores the origin of the image.
Definition at line 440 of file itkImageIOBase.h.
IOPixelType itk::ImageIOBase::m_PixelType [protected] |
Used internally to keep track of the type of the pixel.
Definition at line 396 of file itkImageIOBase.h.
InternalReferenceCountType itk::LightObject::m_ReferenceCount [mutable, protected, inherited] |
Number of uses of this object by other objects.
Definition at line 144 of file itkLightObject.h.
SimpleFastMutexLock itk::LightObject::m_ReferenceCountLock [mutable, protected, inherited] |
Mutex lock to protect modification to the reference count
Definition at line 147 of file itkLightObject.h.
std::vector<double> itk::ImageIOBase::m_Spacing [protected] |
The array which stores the spacing of pixels in the x, y, z directions.
Definition at line 437 of file itkImageIOBase.h.
std::vector< SizeType > itk::ImageIOBase::m_Strides [protected] |
Stores the number of bytes it takes to get to the next 'thing' e.g. component, pixel, row, slice, etc.
Definition at line 447 of file itkImageIOBase.h.
bool itk::ImageIOBase::m_UseCompression [protected] |
Should we compress the data?
Definition at line 420 of file itkImageIOBase.h.
bool itk::ImageIOBase::m_UseStreamedReading [protected] |
Should we use streaming for reading
Definition at line 423 of file itkImageIOBase.h.
bool itk::ImageIOBase::m_UseStreamedWriting [protected] |
Should we use streaming for writing
Definition at line 426 of file itkImageIOBase.h.