ITK  4.13.0
Insight Segmentation and Registration Toolkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
itk::ImageAdaptor< TImage, TAccessor > Class Template Reference

#include <itkImageAdaptor.h>

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

Detailed Description

template<typename TImage, typename 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.

Wiki Examples:
Examples:
Examples/DataRepresentation/Image/ImageAdaptor1.cxx, Examples/DataRepresentation/Image/ImageAdaptor2.cxx, Examples/DataRepresentation/Image/ImageAdaptor3.cxx, Examples/DataRepresentation/Image/ImageAdaptor4.cxx, WikiExamples/ImageProcessing/AddPixelAccessor.cxx, and WikiExamples/ImageProcessing/ImageAdaptorExtractVectorComponent.cxx.

Definition at line 55 of file itkImageAdaptor.h.

Classes

struct  Rebind
 

Public Types

typedef
InternalImageType::AccessorFunctorType::template
Rebind< Self >::Type 
AccessorFunctorType
 
typedef TAccessor AccessorType
 
typedef SmartPointer< const SelfConstPointer
 
typedef WeakPointer< const SelfConstWeakPointer
 
typedef Superclass::DirectionType DirectionType
 
typedef Superclass::IndexType IndexType
 
typedef IndexType::IndexValueType IndexValueType
 
typedef TImage InternalImageType
 
typedef InternalPixelTypeInternalPixelPointerType
 
typedef TAccessor::InternalType InternalPixelType
 
typedef PixelType IOPixelType
 
typedef Superclass::OffsetType OffsetType
 
typedef OffsetType::OffsetValueType OffsetValueType
 
typedef TImage::PixelContainer PixelContainer
 
typedef
TImage::PixelContainerConstPointer 
PixelContainerConstPointer
 
typedef
TImage::PixelContainerPointer 
PixelContainerPointer
 
typedef TAccessor::ExternalType PixelType
 
typedef SmartPointer< SelfPointer
 
typedef Superclass::PointType PointType
 
typedef Superclass::RegionType RegionType
 
typedef ImageAdaptor Self
 
typedef Superclass::SizeType SizeType
 
typedef SizeType::SizeValueType SizeValueType
 
typedef Superclass::SpacingType SpacingType
 
typedef ImageBase
< itkGetStaticConstMacro(ImageDimension) > 
Superclass
 
- Public Types inherited from itk::ImageBase< TImage::ImageDimension >
typedef SmartPointer< const SelfConstPointer
 
typedef Matrix
< SpacePrecisionType,
VImageDimension,
VImageDimension > 
DirectionType
 
typedef unsigned int ImageDimensionType
 
typedef Index< VImageDimension > IndexType
 
typedef IndexType::IndexValueType IndexValueType
 
typedef Offset< VImageDimension > OffsetType
 
typedef OffsetType::OffsetValueType OffsetValueType
 
typedef SmartPointer< SelfPointer
 
typedef Point< PointValueType,
VImageDimension > 
PointType
 
typedef SpacePrecisionType PointValueType
 
typedef ImageRegion
< VImageDimension > 
RegionType
 
typedef ImageBase Self
 
typedef Size< VImageDimension > SizeType
 
typedef SizeType::SizeValueType SizeValueType
 
typedef Vector
< SpacingValueType,
VImageDimension > 
SpacingType
 
typedef SpacePrecisionType SpacingValueType
 
typedef DataObject Superclass
 
- Public Types inherited from itk::DataObject
typedef SmartPointer< const SelfConstPointer
 
typedef std::string DataObjectIdentifierType
 
typedef std::vector< Pointer >
::size_type 
DataObjectPointerArraySizeType
 
typedef SmartPointer< SelfPointer
 
typedef DataObject Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

virtual void Allocate (bool initialize=false) override
 
IndexType ComputeIndex (OffsetValueType offset) const
 
virtual void CopyInformation (const DataObject *data) override
 
virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual const RegionTypeGetBufferedRegion () const override
 
InternalPixelTypeGetBufferPointer ()
 
const InternalPixelTypeGetBufferPointer () const
 
virtual const DirectionTypeGetDirection () const override
 
virtual const RegionTypeGetLargestPossibleRegion () const override
 
virtual ModifiedTimeType GetMTime () const override
 
virtual const char * GetNameOfClass () const
 
const OffsetValueTypeGetOffsetTable () const
 
virtual const PointTypeGetOrigin () const override
 
PixelType GetPixel (const IndexType &index) const
 
AccessorTypeGetPixelAccessor (void)
 
const AccessorTypeGetPixelAccessor (void) const
 
PixelContainerPointer GetPixelContainer ()
 
const PixelContainerGetPixelContainer () const
 
virtual const RegionTypeGetRequestedRegion () const override
 
virtual const SpacingTypeGetSpacing () const override
 
virtual void Graft (const Self *imgData)
 
virtual void Initialize () override
 
virtual void Modified () const override
 
PixelType operator[] (const IndexType &index) const
 
virtual void PropagateRequestedRegion () override
 
virtual void SetBufferedRegion (const RegionType &region) override
 
virtual void SetDirection (const DirectionType &direction) override
 
virtual void SetImage (TImage *)
 
virtual void SetLargestPossibleRegion (const RegionType &region) override
 
virtual void SetOrigin (const PointType values) override
 
virtual void SetOrigin (const double *values) override
 
virtual void SetOrigin (const float *values) override
 
void SetPixel (const IndexType &index, const PixelType &value)
 
void SetPixelAccessor (const AccessorType &accessor)
 
void SetPixelContainer (PixelContainer *container)
 
virtual void SetRequestedRegion (const RegionType &region) override
 
virtual void SetRequestedRegion (const DataObject *data) override
 
virtual void SetRequestedRegionToLargestPossibleRegion () override
 
virtual void SetSpacing (const SpacingType &values) override
 
virtual void SetSpacing (const double *values) override
 
virtual void SetSpacing (const float *values) override
 
template<typename TCoordRep >
void TransformContinuousIndexToPhysicalPoint (const ContinuousIndex< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &index, Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &point) const
 
template<typename TCoordRep >
void TransformIndexToPhysicalPoint (const IndexType &index, Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &point) const
 
template<typename TCoordRep >
void TransformLocalVectorToPhysicalVector (const FixedArray< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &inputGradient, FixedArray< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &outputGradient) const
 
template<typename TCoordRep >
bool TransformPhysicalPointToContinuousIndex (const Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &point, ContinuousIndex< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &index) const
 
template<typename TCoordRep >
bool TransformPhysicalPointToIndex (const Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &point, IndexType &index) const
 
template<typename TCoordRep >
void TransformPhysicalVectorToLocalVector (const FixedArray< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &inputGradient, FixedArray< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &outputGradient) const
 
virtual void Update () override
 
virtual void UpdateOutputData () override
 
virtual void UpdateOutputInformation () override
 
virtual bool VerifyRequestedRegion () override
 
- Public Member Functions inherited from itk::ImageBase< TImage::ImageDimension >
OffsetValueType ComputeOffset (const IndexType &ind) const
 
virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual const DirectionTypeGetInverseDirection () const
 
virtual bool RequestedRegionIsOutsideOfTheBufferedRegion () override
 
virtual void SetBufferedRegion (const RegionType &region)
 
virtual void SetDirection (const DirectionType &direction)
 
virtual void SetLargestPossibleRegion (const RegionType &region)
 
virtual void SetRegions (const SizeType &size)
 
virtual void SetRequestedRegion (const RegionType &region)
 
void TransformLocalVectorToPhysicalVector (const FixedArray< TCoordRep, VImageDimension > &inputGradient, FixedArray< TCoordRep, VImageDimension > &outputGradient) const
 
bool TransformPhysicalPointToContinuousIndex (const Point< TCoordRep, VImageDimension > &point, ContinuousIndex< TIndexRep, VImageDimension > &index) const
 
bool TransformPhysicalPointToIndex (const Point< TCoordRep, VImageDimension > &point, IndexType &index) const
 
void TransformPhysicalVectorToLocalVector (const FixedArray< TCoordRep, VImageDimension > &inputGradient, FixedArray< TCoordRep, VImageDimension > &outputGradient) const
 
virtual void SetOrigin (PointType _arg)
 
virtual void SetOrigin (const double origin[VImageDimension])
 
virtual void SetOrigin (const float origin[VImageDimension])
 
virtual void SetRegions (const RegionType &region)
 
const OffsetValueTypeGetOffsetTable () const
 
IndexType ComputeIndex (OffsetValueType offset) const
 
virtual void SetSpacing (const SpacingType &spacing)
 
virtual void SetSpacing (const double spacing[VImageDimension])
 
virtual void SetSpacing (const float spacing[VImageDimension])
 
void TransformContinuousIndexToPhysicalPoint (const ContinuousIndex< TIndexRep, VImageDimension > &index, Point< TCoordRep, VImageDimension > &point) const
 
void TransformIndexToPhysicalPoint (const IndexType &index, Point< TCoordRep, VImageDimension > &point) const
 
virtual unsigned int GetNumberOfComponentsPerPixel () const
 
virtual void SetNumberOfComponentsPerPixel (unsigned int)
 
- Public Member Functions inherited from itk::DataObject
virtual void DataHasBeenGenerated ()
 
void DisconnectPipeline ()
 
bool GetDataReleased () const
 
virtual const bool & GetReleaseDataFlag () const
 
SmartPointerForwardReference
< ProcessObject
GetSource () const
 
DataObjectPointerArraySizeType GetSourceOutputIndex () const
 
const DataObjectIdentifierTypeGetSourceOutputName () const
 
virtual ModifiedTimeType GetUpdateMTime () const
 
virtual void PrepareForNewData ()
 
void ReleaseData ()
 
virtual void ReleaseDataFlagOff ()
 
virtual void ReleaseDataFlagOn ()
 
virtual void ResetPipeline ()
 
void SetReleaseDataFlag (bool flag)
 
bool ShouldIReleaseData () const
 
void SetPipelineMTime (ModifiedTimeType time)
 
virtual const ModifiedTimeTypeGetPipelineMTime () const
 
virtual void SetRealTimeStamp (RealTimeStamp _arg)
 
virtual const RealTimeStampGetRealTimeStamp () const
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetReferenceCount (int) override
 
virtual void UnRegister () const noexceptoverride
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::ImageBase< TImage::ImageDimension >
static unsigned int GetImageDimension ()
 
static Pointer New ()
 
- Static Public Member Functions inherited from itk::DataObject
static bool GetGlobalReleaseDataFlag ()
 
static void GlobalReleaseDataFlagOff ()
 
static void GlobalReleaseDataFlagOn ()
 
static void SetGlobalReleaseDataFlag (bool val)
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Static Public Attributes

static const unsigned int ImageDimension = TImage::ImageDimension
 
- Static Public Attributes inherited from itk::ImageBase< TImage::ImageDimension >
static const ImageDimensionType ImageDimension
 

Protected Member Functions

virtual void Graft (const DataObject *data) override
 
 ImageAdaptor ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual ~ImageAdaptor () override
 
- Protected Member Functions inherited from itk::ImageBase< TImage::ImageDimension >
virtual void ComputeIndexToPhysicalPointMatrices ()
 
void ComputeOffsetTable ()
 
 ImageBase ()
 
virtual void InitializeBufferedRegion ()
 
 ~ImageBase () override
 
OffsetValueType FastComputeOffset (const IndexType &ind) const
 
IndexType FastComputeIndex (OffsetValueType offset) const
 
- Protected Member Functions inherited from itk::DataObject
 DataObject ()
 
virtual void PropagateResetPipeline ()
 
virtual ~DataObject () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object () override
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Member Functions

template<typename TPixelType >
void UpdateAccessor (typename::itk::VectorImage< TPixelType, ImageDimension > *)
 
template<typename T >
void UpdateAccessor (T *)
 

Private Attributes

TImage::Pointer m_Image
 
AccessorType m_PixelAccessor
 

Additional Inherited Members

- Protected Attributes inherited from itk::ImageBase< TImage::ImageDimension >
DirectionType m_Direction
 
DirectionType m_IndexToPhysicalPoint
 
DirectionType m_InverseDirection
 
PointType m_Origin
 
DirectionType m_PhysicalPointToIndex
 
SpacingType m_Spacing
 
- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Member Typedef Documentation

template<typename TImage, typename TAccessor>
typedef InternalImageType::AccessorFunctorType::template Rebind< Self >::Type itk::ImageAdaptor< TImage, TAccessor >::AccessorFunctorType

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

Definition at line 97 of file itkImageAdaptor.h.

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

Accessor type that convert data between internal and external representations.

Definition at line 93 of file itkImageAdaptor.h.

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

Definition at line 69 of file itkImageAdaptor.h.

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

Definition at line 70 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
typedef Superclass::DirectionType itk::ImageAdaptor< TImage, TAccessor >::DirectionType

Direction typedef support. The Direction is a matix of direction cosines that specify the direction between samples.

Definition at line 126 of file itkImageAdaptor.h.

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

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

Definition at line 100 of file itkImageAdaptor.h.

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

Definition at line 101 of file itkImageAdaptor.h.

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

Typedef of unadapted image

Definition at line 73 of file itkImageAdaptor.h.

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

Convenient typedef.

Definition at line 245 of file itkImageAdaptor.h.

template<typename TImage, typename 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 87 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
typedef PixelType itk::ImageAdaptor< TImage, TAccessor >::IOPixelType

Definition at line 89 of file itkImageAdaptor.h.

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

Offset typedef support.

Definition at line 108 of file itkImageAdaptor.h.

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

Definition at line 109 of file itkImageAdaptor.h.

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

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

Definition at line 217 of file itkImageAdaptor.h.

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

Definition at line 219 of file itkImageAdaptor.h.

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

Definition at line 218 of file itkImageAdaptor.h.

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

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

Definition at line 79 of file itkImageAdaptor.h.

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

Definition at line 68 of file itkImageAdaptor.h.

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

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

Definition at line 121 of file itkImageAdaptor.h.

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

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

Definition at line 113 of file itkImageAdaptor.h.

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

Standard class typedefs.

Definition at line 66 of file itkImageAdaptor.h.

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

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

Definition at line 104 of file itkImageAdaptor.h.

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

Definition at line 105 of file itkImageAdaptor.h.

template<typename TImage, typename 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.

Definition at line 117 of file itkImageAdaptor.h.

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

Definition at line 67 of file itkImageAdaptor.h.

Constructor & Destructor Documentation

template<typename TImage, typename TAccessor>
itk::ImageAdaptor< TImage, TAccessor >::ImageAdaptor ( )
protected
template<typename TImage, typename TAccessor>
virtual itk::ImageAdaptor< TImage, TAccessor >::~ImageAdaptor ( )
overrideprotectedvirtual

Member Function Documentation

template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::Allocate ( bool  initialize = false)
overridevirtual

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

Reimplemented from itk::ImageBase< TImage::ImageDimension >.

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

Compute Index given an Offset

template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::CopyInformation ( const DataObject data)
overridevirtual

Copy information from the specified data set. This method is part of the pipeline execution model. By default, a ProcessObject will copy meta-data from the first input to all of its outputs. See ProcessObject::GenerateOutputInformation(). Each subclass of DataObject is responsible for being able to copy whatever meta-data it needs from from another DataObject. ImageBase has more meta-data than its DataObject. Thus, it must provide its own version of CopyInformation() in order to copy the LargestPossibleRegion from the input parameter.

Reimplemented from itk::ImageBase< TImage::ImageDimension >.

template<typename TImage, typename TAccessor>
virtual::itk::LightObject::Pointer itk::ImageAdaptor< TImage, TAccessor >::CreateAnother ( ) const
virtual

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::Object.

Reimplemented in itk::NthElementImageAdaptor< TImage, TOutputPixelType >.

template<typename TImage, typename TAccessor>
virtual const RegionType& itk::ImageAdaptor< TImage, TAccessor >::GetBufferedRegion ( ) const
overridevirtual

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< TImage::ImageDimension >.

template<typename TImage, typename 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<typename TImage, typename TAccessor>
const InternalPixelType* itk::ImageAdaptor< TImage, TAccessor >::GetBufferPointer ( ) const
template<typename TImage, typename TAccessor>
virtual const DirectionType& itk::ImageAdaptor< TImage, TAccessor >::GetDirection ( ) const
overridevirtual

Get the direction cosines of the image. The direction cosines are vectors that point from one pixel to the next. For ImageBase and Image, the default direction is identity.

Reimplemented from itk::ImageBase< TImage::ImageDimension >.

template<typename TImage, typename TAccessor>
virtual const RegionType& itk::ImageAdaptor< TImage, TAccessor >::GetLargestPossibleRegion ( ) const
overridevirtual

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< TImage::ImageDimension >.

template<typename TImage, typename TAccessor>
virtual ModifiedTimeType itk::ImageAdaptor< TImage, TAccessor >::GetMTime ( ) const
overridevirtual

Delegate GetMTime to the Internal Image

Reimplemented from itk::Object.

template<typename TImage, typename TAccessor>
virtual const char* itk::ImageAdaptor< TImage, TAccessor >::GetNameOfClass ( ) const
virtual
template<typename TImage, typename TAccessor>
const OffsetValueType* itk::ImageAdaptor< TImage, TAccessor >::GetOffsetTable ( ) const

Get the OffsetTable from the adapted image

template<typename TImage, typename TAccessor>
virtual const PointType& itk::ImageAdaptor< TImage, TAccessor >::GetOrigin ( ) const
overridevirtual

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

See Also
SetOrigin()

Reimplemented from itk::ImageBase< TImage::ImageDimension >.

template<typename TImage, typename TAccessor>
PixelType itk::ImageAdaptor< TImage, TAccessor >::GetPixel ( const IndexType index) const
inline

Get a pixel (read only version)

Definition at line 202 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
AccessorType& itk::ImageAdaptor< TImage, TAccessor >::GetPixelAccessor ( void  )
inline

Return the Data Accesor object

Definition at line 295 of file itkImageAdaptor.h.

Referenced by itk::NthElementImageAdaptor< TImage, TOutputPixelType >::SelectNthElement().

template<typename TImage, typename TAccessor>
const AccessorType& itk::ImageAdaptor< TImage, TAccessor >::GetPixelAccessor ( void  ) const
inline

Return the Data Accesor object

Definition at line 299 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
PixelContainerPointer itk::ImageAdaptor< TImage, TAccessor >::GetPixelContainer ( )
inline

Return a pointer to the container.

Definition at line 222 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
const PixelContainer* itk::ImageAdaptor< TImage, TAccessor >::GetPixelContainer ( ) const
inline

Definition at line 225 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
virtual const RegionType& itk::ImageAdaptor< TImage, TAccessor >::GetRequestedRegion ( ) const
overridevirtual

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< TImage::ImageDimension >.

template<typename TImage, typename TAccessor>
virtual const SpacingType& itk::ImageAdaptor< TImage, TAccessor >::GetSpacing ( ) const
overridevirtual

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

See Also
SetSpacing()

Reimplemented from itk::ImageBase< TImage::ImageDimension >.

template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::Graft ( const Self imgData)
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< TImage::ImageDimension >.

template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::Graft ( const DataObject data)
overrideprotectedvirtual

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. Subclasses of ImageBase are responsible for copying the pixel container.

Reimplemented from itk::ImageBase< TImage::ImageDimension >.

template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::Initialize ( )
overridevirtual

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

Reimplemented from itk::ImageBase< TImage::ImageDimension >.

template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::Modified ( ) const
overridevirtual

Delegate Modified to the Internal Image

Reimplemented from itk::Object.

Referenced by itk::NthElementImageAdaptor< TImage, TOutputPixelType >::SelectNthElement().

template<typename TImage, typename TAccessor>
static Pointer itk::ImageAdaptor< TImage, TAccessor >::New ( )
static

Method for creation through the object factory.

template<typename TImage, typename 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 206 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
void itk::ImageAdaptor< TImage, TAccessor >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
overrideprotectedvirtual

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::ImageBase< TImage::ImageDimension >.

template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::PropagateRequestedRegion ( )
overridevirtual

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

Reimplemented from itk::DataObject.

template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetBufferedRegion ( const RegionType region)
overridevirtual

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()
template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetDirection ( const DirectionType direction)
overridevirtual

Set the direction of the image.

template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetImage ( TImage *  )
virtual

Set Internal Image

template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetLargestPossibleRegion ( const RegionType region)
overridevirtual

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()
template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetOrigin ( const PointType  values)
overridevirtual

Set the origin of the image.

template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetOrigin ( const double *  values)
overridevirtual
template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetOrigin ( const float *  values)
overridevirtual
template<typename TImage, typename TAccessor>
void itk::ImageAdaptor< TImage, TAccessor >::SetPixel ( const IndexType index,
const PixelType value 
)
inline

Set a pixel.

Definition at line 198 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
void itk::ImageAdaptor< TImage, TAccessor >::SetPixelAccessor ( const AccessorType accessor)
inline

Sets the Data Accesor object

Definition at line 303 of file itkImageAdaptor.h.

template<typename TImage, typename 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<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetRequestedRegion ( const RegionType region)
overridevirtual

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

See Also
ImageRegion, SetLargestPossibleRegion(), SetBufferedRegion()
template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetRequestedRegion ( const DataObject data)
overridevirtual

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< TImage::ImageDimension >.

template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetRequestedRegionToLargestPossibleRegion ( )
overridevirtual

Set the RequestedRegion to the LargestPossibleRegion. This forces a filter to produce all of the output in one execution (i.e. not streaming) on the next call to Update().

Reimplemented from itk::ImageBase< TImage::ImageDimension >.

template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetSpacing ( const SpacingType values)
overridevirtual

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

template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetSpacing ( const double *  values)
overridevirtual
template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::SetSpacing ( const float *  values)
overridevirtual
template<typename TImage, typename TAccessor>
template<typename TCoordRep >
void itk::ImageAdaptor< TImage, TAccessor >::TransformContinuousIndexToPhysicalPoint ( const ContinuousIndex< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &  index,
Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &  point 
) const
inline

Get a physical point (in the space which the origin and spacing information comes from) from a continuous index (in the index space)

See Also
Transform

Definition at line 355 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
template<typename TCoordRep >
void itk::ImageAdaptor< TImage, TAccessor >::TransformIndexToPhysicalPoint ( const IndexType index,
Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &  point 
) const
inline

Get a physical point (in the space which the origin and spacing information comes from) from a discrete index (in the index space)

See Also
Transform

Definition at line 370 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
template<typename TCoordRep >
void itk::ImageAdaptor< TImage, TAccessor >::TransformLocalVectorToPhysicalVector ( const FixedArray< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &  inputGradient,
FixedArray< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &  outputGradient 
) const
inline

Definition at line 379 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
template<typename TCoordRep >
bool itk::ImageAdaptor< TImage, TAccessor >::TransformPhysicalPointToContinuousIndex ( const Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &  point,
ContinuousIndex< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &  index 
) const
inline

Get the continuous index from a physical point.

Returns true if the resulting index is within the image, false otherwise.

See Also
Transform

Definition at line 328 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
template<typename TCoordRep >
bool itk::ImageAdaptor< TImage, TAccessor >::TransformPhysicalPointToIndex ( const Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &  point,
IndexType index 
) const
inline

Get the index (discrete) from a physical point. Floating point index results are truncated to integers. Returns true if the resulting index is within the image, false otherwise

See Also
Transform

Definition at line 342 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
template<typename TCoordRep >
void itk::ImageAdaptor< TImage, TAccessor >::TransformPhysicalVectorToLocalVector ( const FixedArray< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &  inputGradient,
FixedArray< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &  outputGradient 
) const
inline

Definition at line 387 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::Update ( )
overridevirtual

Return the Data Accesor object

Reimplemented from itk::DataObject.

template<typename TImage, typename TAccessor>
template<typename TPixelType >
void itk::ImageAdaptor< TImage, TAccessor >::UpdateAccessor ( typename::itk::VectorImage< TPixelType, ImageDimension > *  )
inlineprivate

Definition at line 409 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
template<typename T >
void itk::ImageAdaptor< TImage, TAccessor >::UpdateAccessor ( T *  )
inlineprivate

Definition at line 415 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::UpdateOutputData ( )
overridevirtual

UpdateOutputData() is part of the pipeline infrastructure to communicate between ProcessObjects and DataObjects. The method of the superclass is overriden to check if the requested image region has zero pixels. This is needed so that filters can set an input's requested region to zero, to indicate that it does not need to be updated or executed.

Reimplemented from itk::ImageBase< TImage::ImageDimension >.

template<typename TImage, typename TAccessor>
virtual void itk::ImageAdaptor< TImage, TAccessor >::UpdateOutputInformation ( )
overridevirtual

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

Reimplemented from itk::ImageBase< TImage::ImageDimension >.

template<typename TImage, typename TAccessor>
virtual bool itk::ImageAdaptor< TImage, TAccessor >::VerifyRequestedRegion ( )
overridevirtual

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.

Reimplemented from itk::ImageBase< TImage::ImageDimension >.

Member Data Documentation

template<typename TImage, typename TAccessor>
const unsigned int itk::ImageAdaptor< TImage, TAccessor >::ImageDimension = TImage::ImageDimension
static

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.

Definition at line 63 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
TImage::Pointer itk::ImageAdaptor< TImage, TAccessor >::m_Image
private

Definition at line 419 of file itkImageAdaptor.h.

template<typename TImage, typename TAccessor>
AccessorType itk::ImageAdaptor< TImage, TAccessor >::m_PixelAccessor
private

Definition at line 423 of file itkImageAdaptor.h.


The documentation for this class was generated from the following file: