Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::ImageAdaptor< TImage, TAccessor > Class Template Reference
[Image Adaptors]

Give access to partial aspects of voxels from an Image. More...

#include <itkImageAdaptor.h>

Inheritance diagram for itk::ImageAdaptor< TImage, TAccessor >:

Inheritance graph
[legend]
Collaboration diagram for itk::ImageAdaptor< TImage, TAccessor >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ImageAdaptor Self
typedef ImageBase< itkGetStaticConstMacro(ImageDimension) Superclass )
typedef SmartPointer< SelfPointer
typedef SmartPointer< const
Self
ConstPointer
typedef WeakPointer< const
Self
ConstWeakPointer
typedef TImage InternalImageType
typedef TAccessor::ExternalType PixelType
typedef TAccessor::InternalType InternalPixelType
typedef TAccessor AccessorType
typedef DefaultPixelAccessorFunctor<
Self
AccessorFunctorType
typedef Superclass::IndexType IndexType
typedef IndexType::IndexValueType IndexValueType
typedef Superclass::SizeType SizeType
typedef SizeType::SizeValueType SizeValueType
typedef Superclass::OffsetType OffsetType
typedef OffsetType::OffsetValueType OffsetValueType
typedef Superclass::RegionType RegionType
typedef Superclass::SpacingType SpacingType
typedef Superclass::PointType PointType
typedef TImage::PixelContainer PixelContainer
typedef TImage::PixelContainerPointer PixelContainerPointer
typedef TImage::PixelContainerConstPointer PixelContainerConstPointer
typedef InternalPixelTypeInternalPixelPointerType

Public Member Functions

 itkStaticConstMacro (ImageDimension, unsigned int, TImage::ImageDimension)
virtual const char * GetNameOfClass () const
virtual void SetLargestPossibleRegion (const RegionType &region)
virtual void SetBufferedRegion (const RegionType &region)
virtual void SetRequestedRegion (const RegionType &region)
virtual void SetRequestedRegion (DataObject *data)
virtual const RegionTypeGetRequestedRegion () const
virtual const RegionTypeGetLargestPossibleRegion () const
virtual const RegionTypeGetBufferedRegion () const
void Allocate ()
virtual void Initialize ()
void SetPixel (const IndexType &index, const PixelType &value)
PixelType GetPixel (const IndexType &index) const
PixelType operator[] (const IndexType &index) const
const OffsetValueTypeGetOffsetTable () const
IndexType ComputeIndex (OffsetValueType offset) const
PixelContainerPointer GetPixelContainer ()
void SetPixelContainer (PixelContainer *container)
virtual void Graft (const DataObject *data)
virtual const SpacingTypeGetSpacing () const
virtual const PointTypeGetOrigin () const
virtual void SetImage (TImage *)
virtual void Modified () const
virtual unsigned long GetMTime () const
AccessorTypeGetPixelAccessor (void)
const AccessorTypeGetPixelAccessor (void) const
void SetPixelAccessor (const AccessorType &accessor)
InternalPixelTypeGetBufferPointer ()
const InternalPixelTypeGetBufferPointer () const
void GetBufferPointer2 (InternalPixelPointerType &)
virtual void SetSpacing (const SpacingType values)
virtual void SetSpacing (const double *values)
virtual void SetSpacing (const float *values)
virtual void SetOrigin (const PointType values)
virtual void SetOrigin (const double *values)
virtual void SetOrigin (const float *values)
virtual void Update ()
virtual void CopyInformation (const DataObject *data)
virtual void UpdateOutputInformation ()
virtual void SetRequestedRegionToLargestPossibleRegion ()
virtual void PropagateRequestedRegion () throw (InvalidRequestedRegionError)
virtual void UpdateOutputData ()
virtual bool VerifyRequestedRegion ()

Static Public Member Functions

Pointer New ()

Protected Member Functions

 ImageAdaptor ()
virtual ~ImageAdaptor ()
void PrintSelf (std::ostream &os, Indent indent) const

Detailed Description

template<class TImage, class TAccessor>
class itk::ImageAdaptor< TImage, TAccessor >

Give access to partial aspects of voxels from an Image.

ImageAdaptors are templated over the ImageType and over a functor that will specify what part of the pixel can be accessed

The basic aspects of this class are the types it defines.

Image adaptors can be used as intermediate classes that allow the sending of an image to a filter, specifying what part of the image pixels the filter will act on.

The TAccessor class should implement the Get and Set methods These two will specify how data can be put and get from parts of each pixel. It should define the types ExternalType and InternalType too.

Definition at line 48 of file itkImageAdaptor.h.


Member Typedef Documentation

template<class TImage, class TAccessor>
typedef DefaultPixelAccessorFunctor< Self > itk::ImageAdaptor< TImage, TAccessor >::AccessorFunctorType
 

typedef of the functor that chooses the appropriate accessor Image or VectorImage.

Definition at line 88 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef TAccessor itk::ImageAdaptor< TImage, TAccessor >::AccessorType
 

Accessor type that convert data between internal and external representations.

Definition at line 84 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef SmartPointer<const Self> itk::ImageAdaptor< TImage, TAccessor >::ConstPointer
 

Reimplemented from itk::ImageBase< VImageDimension >.

Reimplemented in itk::AbsImageAdaptor< TImage, TOutputPixelType >, itk::AcosImageAdaptor< TImage, TOutputPixelType >, itk::AddImageAdaptor< TImage >, itk::AsinImageAdaptor< TImage, TOutputPixelType >, itk::AtanImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToImaginaryImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToModulusImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToPhaseImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToRealImageAdaptor< TImage, TOutputPixelType >, itk::CosImageAdaptor< TImage, TOutputPixelType >, itk::ExpImageAdaptor< TImage, TOutputPixelType >, itk::ExpNegativeImageAdaptor< TImage, TOutputPixelType >, itk::Log10ImageAdaptor< TImage, TOutputPixelType >, itk::LogImageAdaptor< TImage, TOutputPixelType >, itk::NthElementImageAdaptor< TImage, TOutputPixelType >, itk::RGBToLuminanceImageAdaptor< TImage, TOutputPixelType >, itk::RGBToVectorImageAdaptor< TImage >, itk::SinImageAdaptor< TImage, TOutputPixelType >, itk::SqrtImageAdaptor< TImage, TOutputPixelType >, itk::TanImageAdaptor< TImage, TOutputPixelType >, itk::VectorImageToImageAdaptor< TPixelType, Dimension >, and itk::VectorToRGBImageAdaptor< TImage >.

Definition at line 62 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef WeakPointer<const Self> itk::ImageAdaptor< TImage, TAccessor >::ConstWeakPointer
 

Definition at line 63 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef Superclass::IndexType itk::ImageAdaptor< TImage, TAccessor >::IndexType
 

Index typedef support. An index is used to access pixel values.

Reimplemented from itk::ImageBase< VImageDimension >.

Definition at line 91 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef IndexType::IndexValueType itk::ImageAdaptor< TImage, TAccessor >::IndexValueType
 

Reimplemented from itk::ImageBase< VImageDimension >.

Definition at line 92 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef TImage itk::ImageAdaptor< TImage, TAccessor >::InternalImageType
 

Typedef of unadapted image

Definition at line 69 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef InternalPixelType* itk::ImageAdaptor< TImage, TAccessor >::InternalPixelPointerType
 

Convenient typedef.

Definition at line 216 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef TAccessor::InternalType itk::ImageAdaptor< TImage, TAccessor >::InternalPixelType
 

Pixel typedef support. Used to declare pixel type in filters or other operations.

Definition at line 80 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef Superclass::OffsetType itk::ImageAdaptor< TImage, TAccessor >::OffsetType
 

Offset typedef support.

Reimplemented from itk::ImageBase< VImageDimension >.

Definition at line 99 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef OffsetType::OffsetValueType itk::ImageAdaptor< TImage, TAccessor >::OffsetValueType
 

Reimplemented from itk::ImageBase< VImageDimension >.

Definition at line 100 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef TImage::PixelContainer itk::ImageAdaptor< TImage, TAccessor >::PixelContainer
 

PixelContainer typedef support. Used to construct a container for the pixel data.

Reimplemented in itk::RGBToVectorImageAdaptor< TImage >, itk::VectorImageToImageAdaptor< TPixelType, Dimension >, and itk::VectorToRGBImageAdaptor< TImage >.

Definition at line 191 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef TImage::PixelContainerConstPointer itk::ImageAdaptor< TImage, TAccessor >::PixelContainerConstPointer
 

Reimplemented in itk::RGBToVectorImageAdaptor< TImage >, itk::VectorImageToImageAdaptor< TPixelType, Dimension >, and itk::VectorToRGBImageAdaptor< TImage >.

Definition at line 193 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef TImage::PixelContainerPointer itk::ImageAdaptor< TImage, TAccessor >::PixelContainerPointer
 

Reimplemented in itk::RGBToVectorImageAdaptor< TImage >, itk::VectorImageToImageAdaptor< TPixelType, Dimension >, and itk::VectorToRGBImageAdaptor< TImage >.

Definition at line 192 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef TAccessor::ExternalType itk::ImageAdaptor< TImage, TAccessor >::PixelType
 

Pixel typedef support. Used to declare pixel type in filters or other operations.

Reimplemented in itk::AddImageAdaptor< TImage >.

Definition at line 76 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef SmartPointer<Self> itk::ImageAdaptor< TImage, TAccessor >::Pointer
 

Reimplemented from itk::ImageBase< VImageDimension >.

Reimplemented in itk::AbsImageAdaptor< TImage, TOutputPixelType >, itk::AcosImageAdaptor< TImage, TOutputPixelType >, itk::AddImageAdaptor< TImage >, itk::AsinImageAdaptor< TImage, TOutputPixelType >, itk::AtanImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToImaginaryImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToModulusImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToPhaseImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToRealImageAdaptor< TImage, TOutputPixelType >, itk::CosImageAdaptor< TImage, TOutputPixelType >, itk::ExpImageAdaptor< TImage, TOutputPixelType >, itk::ExpNegativeImageAdaptor< TImage, TOutputPixelType >, itk::Log10ImageAdaptor< TImage, TOutputPixelType >, itk::LogImageAdaptor< TImage, TOutputPixelType >, itk::NthElementImageAdaptor< TImage, TOutputPixelType >, itk::RGBToLuminanceImageAdaptor< TImage, TOutputPixelType >, itk::RGBToVectorImageAdaptor< TImage >, itk::SinImageAdaptor< TImage, TOutputPixelType >, itk::SqrtImageAdaptor< TImage, TOutputPixelType >, itk::TanImageAdaptor< TImage, TOutputPixelType >, itk::VectorImageToImageAdaptor< TPixelType, Dimension >, and itk::VectorToRGBImageAdaptor< TImage >.

Definition at line 61 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef Superclass::PointType itk::ImageAdaptor< TImage, TAccessor >::PointType
 

Origin typedef support. The origin is the geometric coordinates of the index (0,0).

Reimplemented from itk::ImageBase< VImageDimension >.

Definition at line 112 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef Superclass::RegionType itk::ImageAdaptor< TImage, TAccessor >::RegionType
 

Region typedef support. A region is used to specify a subset of an image.

Reimplemented from itk::ImageBase< VImageDimension >.

Definition at line 104 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef ImageAdaptor itk::ImageAdaptor< TImage, TAccessor >::Self
 

Standard class typedefs.

Reimplemented from itk::ImageBase< VImageDimension >.

Reimplemented in itk::AbsImageAdaptor< TImage, TOutputPixelType >, itk::AcosImageAdaptor< TImage, TOutputPixelType >, itk::AddImageAdaptor< TImage >, itk::AsinImageAdaptor< TImage, TOutputPixelType >, itk::AtanImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToImaginaryImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToModulusImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToPhaseImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToRealImageAdaptor< TImage, TOutputPixelType >, itk::CosImageAdaptor< TImage, TOutputPixelType >, itk::ExpImageAdaptor< TImage, TOutputPixelType >, itk::ExpNegativeImageAdaptor< TImage, TOutputPixelType >, itk::Log10ImageAdaptor< TImage, TOutputPixelType >, itk::LogImageAdaptor< TImage, TOutputPixelType >, itk::NthElementImageAdaptor< TImage, TOutputPixelType >, itk::RGBToLuminanceImageAdaptor< TImage, TOutputPixelType >, itk::RGBToVectorImageAdaptor< TImage >, itk::SinImageAdaptor< TImage, TOutputPixelType >, itk::SqrtImageAdaptor< TImage, TOutputPixelType >, itk::TanImageAdaptor< TImage, TOutputPixelType >, itk::VectorImageToImageAdaptor< TPixelType, Dimension >, and itk::VectorToRGBImageAdaptor< TImage >.

Definition at line 59 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef Superclass::SizeType itk::ImageAdaptor< TImage, TAccessor >::SizeType
 

Size typedef support. A size is used to define region bounds.

Reimplemented from itk::ImageBase< VImageDimension >.

Definition at line 95 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef SizeType::SizeValueType itk::ImageAdaptor< TImage, TAccessor >::SizeValueType
 

Reimplemented from itk::ImageBase< VImageDimension >.

Definition at line 96 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef Superclass::SpacingType itk::ImageAdaptor< TImage, TAccessor >::SpacingType
 

Spacing typedef support. Spacing holds the size of a pixel. The spacing is the geometric distance between image samples.

Reimplemented from itk::ImageBase< VImageDimension >.

Definition at line 108 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
typedef ImageBase<itkGetStaticConstMacro(ImageDimension) itk::ImageAdaptor< TImage, TAccessor >::Superclass)
 

Reimplemented from itk::ImageBase< VImageDimension >.

Reimplemented in itk::AbsImageAdaptor< TImage, TOutputPixelType >, itk::AcosImageAdaptor< TImage, TOutputPixelType >, itk::AddImageAdaptor< TImage >, itk::AsinImageAdaptor< TImage, TOutputPixelType >, itk::AtanImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToImaginaryImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToModulusImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToPhaseImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToRealImageAdaptor< TImage, TOutputPixelType >, itk::CosImageAdaptor< TImage, TOutputPixelType >, itk::ExpImageAdaptor< TImage, TOutputPixelType >, itk::ExpNegativeImageAdaptor< TImage, TOutputPixelType >, itk::Log10ImageAdaptor< TImage, TOutputPixelType >, itk::LogImageAdaptor< TImage, TOutputPixelType >, itk::NthElementImageAdaptor< TImage, TOutputPixelType >, itk::RGBToLuminanceImageAdaptor< TImage, TOutputPixelType >, itk::RGBToVectorImageAdaptor< TImage >, itk::SinImageAdaptor< TImage, TOutputPixelType >, itk::SqrtImageAdaptor< TImage, TOutputPixelType >, itk::TanImageAdaptor< TImage, TOutputPixelType >, itk::VectorImageToImageAdaptor< TPixelType, Dimension >, and itk::VectorToRGBImageAdaptor< TImage >.

Definition at line 60 of file itkImageAdaptor.h.


Constructor & Destructor Documentation

template<class TImage, class TAccessor>
itk::ImageAdaptor< TImage, TAccessor >::ImageAdaptor  )  [protected]
 

template<class TImage, class TAccessor>
virtual itk::ImageAdaptor< TImage, TAccessor >::~ImageAdaptor  )  [protected, virtual]
 


Member Function Documentation

template<class TImage, class TAccessor>
void itk::ImageAdaptor< TImage, TAccessor >::Allocate  )  [inline]
 

Allocate the image memory. Dimension and Size must be set a priori.

template<class TImage, class TAccessor>
IndexType itk::ImageAdaptor< TImage, TAccessor >::ComputeIndex OffsetValueType  offset  )  const
 

Compute Index given an Offset

Reimplemented from itk::ImageBase< VImageDimension >.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::CopyInformation const DataObject data  )  [virtual]
 

Return the Data Accesor object

Reimplemented from itk::ImageBase< VImageDimension >.

template<class TImage, class TAccessor>
virtual const RegionType& itk::ImageAdaptor< TImage, TAccessor >::GetBufferedRegion  )  const [virtual]
 

Get the region object that defines the size and starting index of the region of the image currently loaded in memory. This method overloads the one in ImageBase in order to delegate to the adapted image.

See also:
ImageRegion, SetLargestPossibleRegion(), SetRequestedRegion()

Reimplemented from itk::ImageBase< VImageDimension >.

template<class TImage, class TAccessor>
const InternalPixelType* itk::ImageAdaptor< TImage, TAccessor >::GetBufferPointer  )  const
 

Return a pointer to the beginning of the buffer. This is used by the image iterator class.

template<class TImage, class TAccessor>
InternalPixelType* itk::ImageAdaptor< TImage, TAccessor >::GetBufferPointer  ) 
 

Return a pointer to the beginning of the buffer. This is used by the image iterator class.

template<class TImage, class TAccessor>
void itk::ImageAdaptor< TImage, TAccessor >::GetBufferPointer2 InternalPixelPointerType  ) 
 

Return a pointer to the beginning of the buffer. This is used by the image iterator class.

template<class TImage, class TAccessor>
virtual const RegionType& itk::ImageAdaptor< TImage, TAccessor >::GetLargestPossibleRegion  )  const [virtual]
 

Get the region object that defines the size and starting index for the largest possible region this image could represent. This is used in determining how much memory would be needed to load an entire dataset. It is also used to determine boundary conditions. This method overloads the one in ImageBase in order to delegate to the adapted image.

See also:
ImageRegion, GetBufferedRegion(), GetRequestedRegion()

Reimplemented from itk::ImageBase< VImageDimension >.

template<class TImage, class TAccessor>
virtual unsigned long itk::ImageAdaptor< TImage, TAccessor >::GetMTime  )  const [virtual]
 

Delegate GetMTime to the Internal Image

Reimplemented from itk::Object.

template<class TImage, class TAccessor>
virtual const char* itk::ImageAdaptor< TImage, TAccessor >::GetNameOfClass  )  const [virtual]
 

Run-time type information (and related methods).

Reimplemented from itk::ImageBase< VImageDimension >.

Reimplemented in itk::AbsImageAdaptor< TImage, TOutputPixelType >, itk::AcosImageAdaptor< TImage, TOutputPixelType >, itk::AddImageAdaptor< TImage >, itk::AsinImageAdaptor< TImage, TOutputPixelType >, itk::AtanImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToImaginaryImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToModulusImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToPhaseImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToRealImageAdaptor< TImage, TOutputPixelType >, itk::CosImageAdaptor< TImage, TOutputPixelType >, itk::ExpImageAdaptor< TImage, TOutputPixelType >, itk::ExpNegativeImageAdaptor< TImage, TOutputPixelType >, itk::Log10ImageAdaptor< TImage, TOutputPixelType >, itk::LogImageAdaptor< TImage, TOutputPixelType >, itk::NthElementImageAdaptor< TImage, TOutputPixelType >, itk::RGBToLuminanceImageAdaptor< TImage, TOutputPixelType >, itk::RGBToVectorImageAdaptor< TImage >, itk::SinImageAdaptor< TImage, TOutputPixelType >, itk::SqrtImageAdaptor< TImage, TOutputPixelType >, itk::TanImageAdaptor< TImage, TOutputPixelType >, itk::VectorImageToImageAdaptor< TPixelType, Dimension >, and itk::VectorToRGBImageAdaptor< TImage >.

template<class TImage, class TAccessor>
const OffsetValueType* itk::ImageAdaptor< TImage, TAccessor >::GetOffsetTable  )  const
 

Get the OffsetTable from the adapted image

Reimplemented from itk::ImageBase< VImageDimension >.

template<class TImage, class TAccessor>
virtual const PointType& itk::ImageAdaptor< TImage, TAccessor >::GetOrigin  )  const [virtual]
 

Get the origin of the image. The origin is the geometric coordinates of the image origin.

See also:
SetOrigin()

template<class TImage, class TAccessor>
PixelType itk::ImageAdaptor< TImage, TAccessor >::GetPixel const IndexType index  )  const [inline]
 

Get a pixel (read only version)

Definition at line 176 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
const AccessorType& itk::ImageAdaptor< TImage, TAccessor >::GetPixelAccessor void   )  const [inline]
 

Return the Data Accesor object

Definition at line 261 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
AccessorType& itk::ImageAdaptor< TImage, TAccessor >::GetPixelAccessor void   )  [inline]
 

Return the Data Accesor object

Definition at line 257 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
PixelContainerPointer itk::ImageAdaptor< TImage, TAccessor >::GetPixelContainer  )  [inline]
 

Return a pointer to the container.

Definition at line 196 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
virtual const RegionType& itk::ImageAdaptor< TImage, TAccessor >::GetRequestedRegion  )  const [virtual]
 

Get the region object that defines the size and starting index for the region of the image requested (i.e., the region of the image to be operated on by a filter). This method overloads the one in ImageBase in order to delegate to the adapted image.

See also:
ImageRegion, SetLargestPossibleRegion(), SetBufferedRegion()

Reimplemented from itk::ImageBase< VImageDimension >.

template<class TImage, class TAccessor>
virtual const SpacingType& itk::ImageAdaptor< TImage, TAccessor >::GetSpacing  )  const [virtual]
 

Get the spacing (size of a pixel) of the image. The spacing is the geometric distance between image samples.

See also:
SetSpacing()

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::Graft const DataObject data  )  [virtual]
 

Graft the data and information from one image to another. This is a convenience method to setup a second image with all the meta information of another image and use the same pixel container. Note that this method is different than just using two SmartPointers to the same image since separate DataObjects are still maintained. This method is similar to ImageSource::GraftOutput(). The implementation in ImageBase simply calls CopyInformation() and copies the region ivars. The implementation here refers to the superclass' implementation and then copies over the pixel container.

Reimplemented from itk::ImageBase< VImageDimension >.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::Initialize  )  [virtual]
 

Restore the data object to its initial state. This means releasing memory.

Reimplemented from itk::ImageBase< VImageDimension >.

template<class TImage, class TAccessor>
itk::ImageAdaptor< TImage, TAccessor >::itkStaticConstMacro ImageDimension  ,
unsigned  int,
TImage::ImageDimension 
 

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.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::Modified  )  const [virtual]
 

Delegate Modified to the Internal Image

Reimplemented from itk::Object.

template<class TImage, class TAccessor>
Pointer itk::ImageAdaptor< TImage, TAccessor >::New  )  [static]
 

Method for creation through the object factory.

Reimplemented from itk::ImageBase< VImageDimension >.

Reimplemented in itk::AbsImageAdaptor< TImage, TOutputPixelType >, itk::AcosImageAdaptor< TImage, TOutputPixelType >, itk::AddImageAdaptor< TImage >, itk::AsinImageAdaptor< TImage, TOutputPixelType >, itk::AtanImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToImaginaryImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToModulusImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToPhaseImageAdaptor< TImage, TOutputPixelType >, itk::ComplexToRealImageAdaptor< TImage, TOutputPixelType >, itk::CosImageAdaptor< TImage, TOutputPixelType >, itk::ExpImageAdaptor< TImage, TOutputPixelType >, itk::ExpNegativeImageAdaptor< TImage, TOutputPixelType >, itk::Log10ImageAdaptor< TImage, TOutputPixelType >, itk::LogImageAdaptor< TImage, TOutputPixelType >, itk::NthElementImageAdaptor< TImage, TOutputPixelType >, itk::RGBToLuminanceImageAdaptor< TImage, TOutputPixelType >, itk::RGBToVectorImageAdaptor< TImage >, itk::SinImageAdaptor< TImage, TOutputPixelType >, itk::SqrtImageAdaptor< TImage, TOutputPixelType >, itk::TanImageAdaptor< TImage, TOutputPixelType >, itk::VectorImageToImageAdaptor< TPixelType, Dimension >, and itk::VectorToRGBImageAdaptor< TImage >.

template<class TImage, class TAccessor>
PixelType itk::ImageAdaptor< TImage, TAccessor >::operator[] const IndexType index  )  const [inline]
 

Access a pixel. This version can only be an rvalue.

Definition at line 180 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
void itk::ImageAdaptor< TImage, TAccessor >::PrintSelf std::ostream &  os,
Indent  indent
const [protected, virtual]
 

Compute the index of the pixel at a specified offset from the beginning of the buffered region. Bounds checking is not performed. Thus, the computed index could be outside the BufferedRegion. To ensure a valid index, the parameter "offset" should be between 0 and the number of pixels in the BufferedRegion (the latter can be found using ImageRegion::GetNumberOfPixels()).

Reimplemented from itk::ImageBase< VImageDimension >.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::PropagateRequestedRegion  )  throw (InvalidRequestedRegionError) [virtual]
 

Methods to update the pipeline. Called internally by the pipeline mechanism.

Reimplemented from itk::DataObject.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetBufferedRegion const RegionType region  )  [virtual]
 

Set the region object that defines the size and starting index of the region of the image currently load in memory.

See also:
ImageRegion, SetLargestPossibleRegion(), SetRequestedRegion()

Reimplemented from itk::ImageBase< VImageDimension >.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetImage TImage  )  [virtual]
 

Set Internal Image

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetLargestPossibleRegion const RegionType region  )  [virtual]
 

Set the region object that defines the size and starting index for the largest possible region this image could represent. This is used in determining how much memory would be needed to load an entire dataset. It is also used to determine boundary conditions.

See also:
ImageRegion, SetBufferedRegion(), SetRequestedRegion()

Reimplemented from itk::ImageBase< VImageDimension >.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetOrigin const float *  values  )  [virtual]
 

Set the origin of the image.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetOrigin const double *  values  )  [virtual]
 

Set the origin of the image.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetOrigin const PointType  values  )  [virtual]
 

Set the origin of the image.

Reimplemented from itk::ImageBase< VImageDimension >.

template<class TImage, class TAccessor>
void itk::ImageAdaptor< TImage, TAccessor >::SetPixel const IndexType index,
const PixelType value
[inline]
 

Set a pixel.

Definition at line 172 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
void itk::ImageAdaptor< TImage, TAccessor >::SetPixelAccessor const AccessorType accessor  )  [inline]
 

Sets the Data Accesor object

Definition at line 265 of file itkImageAdaptor.h.

template<class TImage, class TAccessor>
void itk::ImageAdaptor< TImage, TAccessor >::SetPixelContainer PixelContainer container  ) 
 

Set the container to use. Note that this does not cause the DataObject to be modified.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetRequestedRegion DataObject data  )  [virtual]
 

Set the requested region from this data object to match the requested region of the data object passed in as a parameter. This method implements the API from DataObject. The data object parameter must be castable to an ImageBase.

Reimplemented from itk::ImageBase< VImageDimension >.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetRequestedRegion const RegionType region  )  [virtual]
 

Set the region object that defines the size and starting index for the region of the image requested.

See also:
ImageRegion, SetLargestPossibleRegion(), SetBufferedRegion()

Reimplemented from itk::ImageBase< VImageDimension >.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetRequestedRegionToLargestPossibleRegion  )  [virtual]
 

Methods to update the pipeline. Called internally by the pipeline mechanism.

Reimplemented from itk::ImageBase< VImageDimension >.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetSpacing const float *  values  )  [virtual]
 

Set the spacing (size of a pixel) of the image.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetSpacing const double *  values  )  [virtual]
 

Set the spacing (size of a pixel) of the image.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetSpacing const SpacingType  values  )  [virtual]
 

Set the spacing (size of a pixel) of the image.

Reimplemented from itk::ImageBase< VImageDimension >.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::Update  )  [virtual]
 

Return the Data Accesor object

Reimplemented from itk::DataObject.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::UpdateOutputData  )  [virtual]
 

Methods to update the pipeline. Called internally by the pipeline mechanism.

Reimplemented from itk::DataObject.

template<class TImage, class TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::UpdateOutputInformation  )  [virtual]
 

Methods to update the pipeline. Called internally by the pipeline mechanism.

Reimplemented from itk::ImageBase< VImageDimension >.

template<class TImage, class TAccessor>
virtual bool itk::ImageAdaptor< TImage, TAccessor >::VerifyRequestedRegion  )  [virtual]
 

Methods to update the pipeline. Called internally by the pipeline mechanism.

Reimplemented from itk::ImageBase< VImageDimension >.


The documentation for this class was generated from the following file:
Generated at Thu May 25 01:13:12 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000