#include <itkImageBase.h>
Inheritance diagram for itk::ImageBase:
[NOHEADER] | |
OffsetValueType | ComputeOffset (const IndexType &ind) const |
IndexType | ComputeIndex (OffsetValueType offset) const |
virtual void | CopyInformation (const DataObject *data) |
virtual void | UpdateOutputInformation () |
virtual void | SetRequestedRegionToLargestPossibleRegion () |
virtual bool | RequestedRegionIsOutsideOfTheBufferedRegion () |
virtual bool | VerifyRequestedRegion () |
ImageBase () | |
~ImageBase () | |
virtual void | PrintSelf (std::ostream &os, Indent indent) const |
void | ComputeOffsetTable () |
double | m_Spacing [VImageDimension] |
double | m_Origin [VImageDimension] |
Public Types | |
typedef ImageBase | Self |
typedef DataObject | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef Index< VImageDimension > | IndexType |
typedef IndexType::IndexValueType | IndexValueType |
typedef Offset< VImageDimension > | OffsetType |
typedef OffsetType::OffsetValueType | OffsetValueType |
typedef Size< VImageDimension > | SizeType |
typedef SizeType::SizeValueType | SizeValueType |
typedef ImageRegion< VImageDimension > | RegionType |
Public Methods | |
virtual const char * | GetClassName () const |
itkStaticConstMacro (ImageDimension, unsigned int, VImageDimension) | |
void | Initialize () |
virtual const double * | GetSpacing () const |
virtual const double * | GetOrigin () const |
virtual void | SetLargestPossibleRegion (const RegionType ®ion) |
virtual const RegionType & | GetLargestPossibleRegion () const |
virtual void | SetBufferedRegion (const RegionType ®ion) |
virtual const RegionType & | GetBufferedRegion () const |
virtual void | SetRequestedRegion (const RegionType ®ion) |
virtual void | SetRequestedRegion (DataObject *data) |
virtual const RegionType & | GetRequestedRegion () const |
const OffsetValueType * | GetOffsetTable () const |
Static Public Methods | |
Pointer | New () |
unsigned int | GetImageDimension () |
ImageBase is the base class for the templated Image classes. ImageBase is templated over the dimension of the image. It provides the API and ivars that depend solely on the dimension of the image. ImageBase does not store any of the image (pixel) data. Storage for the pixels and the pixel access methods are defined in subclasses of ImageBase, namely Image and ImageAdaptor.
There are three sets of meta-data describing an image. These are "Region" objects that define a portion of an image via a starting index for the image array and a size. The ivar LargestPossibleRegion defines the size and starting index of the image dataset. The entire image dataset, however, may not be resident in memory. The region of the image that is resident in memory is defined by the "BufferedRegion". The Buffer is a contiguous block of memory. The third set of meta-data defines a region of interest, called the "RequestedRegion". The RequestedRegion is used by the pipeline execution model to define what a filter is requested to produce.
[RegionIndex, RegionSize] C [BufferIndex, BufferSize] C [ImageIndex, ImageSize]
Definition at line 74 of file itkImageBase.h.
|
|
|
|
|
|
|
|
|
|
|
|
Compute an offset from the beginning of the buffer for a pixel at the specified index. |
|
Compute an offset from the beginning of the buffer for a pixel at the specified index. |
|
|
Compute an offset from the beginning of the buffer for a pixel at the specified index. Definition at line 191 of file itkImageBase.h. |
|
Calculate the offsets needed to move from one pixel to the next along a row, column, slice, volume, etc. These offsets are based on the size of the BufferedRegion. This should be called after the BufferedRegion is set. |
|
|
|
|
Image dimension. The dimension of an image is fixed at construction. Definition at line 115 of file itkImageBase.h. |
|
|
|
|
|
|
|
Dimension of the image. This constant is used by functions that are templated over image type (as opposed to being templated over pixel type and dimension) when they need compile time access to the dimension of the image. Reimplemented in itk::BloxImage< TBloxPixelType, VImageDimension >, itk::Image< TPixel, VImageDimension >, itk::BloxImage< BloxBoundaryPointPixel< VImageDimension >, VImageDimension >, itk::BloxImage< BloxBoundaryProfilePixel< VImageDimension >, VImageDimension >, itk::BloxImage< BloxCoreAtomPixel< dim >, dim >, itk::Image< BloxBoundaryPointPixel< VImageDimension >, VImageDimension >, itk::Image< BloxBoundaryProfilePixel< VImageDimension >, VImageDimension >, itk::Image< BloxCoreAtomPixel< dim >, VImageDimension >, and itk::Image< TBloxPixelType, VImageDimension >. |
|
|
|
Determine whether the RequestedRegion is outside of the BufferedRegion. This method returns true if the RequestedRegion is outside the BufferedRegion (true if at least one pixel is outside). This is used by the pipeline mechanism to determine whether a filter needs to re-execute in order to satisfy the current request. If the current RequestedRegion is already inside the BufferedRegion from the previous execution (and the current filter is up to date), then a given filter does not need to re-execute Implements itk::DataObject. |
|
|
|
|
|
|
|
Verify that the RequestedRegion is within the LargestPossibleRegion. If the RequestedRegion is not within the LargestPossibleRegion, then the filter cannot possible satisfy the request. This method returns true if the request can be satisfied and returns fails if the request cannot. This method is used by PropagateRequestedRegion(). PropagateRequestedRegion() throws a InvalidRequestedRegionError exception is the requested region is not within the LargestPossibleRegion. Implements itk::DataObject. |
|
Compute an offset from the beginning of the buffer for a pixel at the specified index. Definition at line 288 of file itkImageBase.h. |
|
Origin and spacing of physical coordinates. Definition at line 287 of file itkImageBase.h. |