go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
itk::ImageSpatialObject2< TDimension, TPixelType > Class Template Reference

#include <itkImageSpatialObject2.h>

Detailed Description

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
class itk::ImageSpatialObject2< TDimension, TPixelType >

Implementation of an image as spatial object.

This class fixes a bug in the ITK. The ITK has implemented the ImageSpatialObject with a wrong conversion between physical coordinates and image coordinates. This class solves that.

See also
SpatialObject CompositeSpatialObject

Definition at line 62 of file itkImageSpatialObject2.h.

Inheritance diagram for itk::ImageSpatialObject2< TDimension, TPixelType >:
Inheritance graph
[legend]

Public Types

typedef Superclass::BoundingBoxType BoundingBoxType
 
typedef SmartPointer< const SelfConstPointer
 
typedef ImageType::ConstPointer ImagePointer
 
typedef Image< PixelType, TDimension > ImageType
 
typedef ImageType::IndexType IndexType
 
typedef InterpolateImageFunction< ImageTypeInterpolatorType
 
typedef NearestNeighborInterpolateImageFunction< ImageTypeNNInterpolatorType
 
typedef TPixelType PixelType
 
typedef PointContainerType::Pointer PointContainerPointer
 
typedef VectorContainer< unsigned long, PointTypePointContainerType
 
typedef SmartPointer< SelfPointer
 
typedef Superclass::PointType PointType
 
typedef ImageType::RegionType RegionType
 
typedef double ScalarType
 
typedef ImageSpatialObject2< TDimension, TPixelType > Self
 
typedef ImageType::SizeType SizeType
 
typedef SpatialObject< TDimension > Superclass
 
typedef Superclass::TransformType TransformType
 

Public Member Functions

bool ComputeLocalBoundingBox () const
 
virtual const char * GetClassName () const
 
const ImageTypeGetImage (void) const
 
virtual InterpolatorTypeGetInterpolator ()
 
unsigned long GetMTime (void) const
 
const char * GetPixelType ()
 
int GetSlicePosition (unsigned int dimension)
 
bool IsEvaluableAt (const PointType &point, unsigned int depth=0, char *name=NULL) const
 
bool IsInside (const PointType &point, unsigned int depth, char *name) const
 
bool IsInside (const PointType &point) const
 
void SetImage (const ImageType *image)
 
void SetInterpolator (InterpolatorType *interpolator)
 
void SetSlicePosition (unsigned int dimension, int position)
 
bool ValueAt (const PointType &point, double &value, unsigned int depth=0, char *name=NULL) const
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 ImageSpatialObject2 (const Self &)
 
 ImageSpatialObject2 ()
 
void operator= (const Self &)
 
void PrintSelf (std::ostream &os, Indent indent) const
 
virtual ~ImageSpatialObject2 ()
 

Protected Attributes

ImagePointer m_Image
 
InterpolatorType::Pointer m_Interpolator
 
std::string m_PixelType
 
intm_SlicePosition
 

Member Typedef Documentation

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef Superclass::BoundingBoxType itk::ImageSpatialObject2< TDimension, TPixelType >::BoundingBoxType

Definition at line 82 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef SmartPointer< const Self > itk::ImageSpatialObject2< TDimension, TPixelType >::ConstPointer

Definition at line 72 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef ImageType::ConstPointer itk::ImageSpatialObject2< TDimension, TPixelType >::ImagePointer

Definition at line 76 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef Image< PixelType, TDimension > itk::ImageSpatialObject2< TDimension, TPixelType >::ImageType

Definition at line 75 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef ImageType::IndexType itk::ImageSpatialObject2< TDimension, TPixelType >::IndexType

Definition at line 77 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef InterpolateImageFunction< ImageType > itk::ImageSpatialObject2< TDimension, TPixelType >::InterpolatorType

Definition at line 83 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef NearestNeighborInterpolateImageFunction< ImageType > itk::ImageSpatialObject2< TDimension, TPixelType >::NNInterpolatorType

Definition at line 86 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef TPixelType itk::ImageSpatialObject2< TDimension, TPixelType >::PixelType

Definition at line 74 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef PointContainerType::Pointer itk::ImageSpatialObject2< TDimension, TPixelType >::PointContainerPointer

Definition at line 89 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef VectorContainer< unsigned long, PointType > itk::ImageSpatialObject2< TDimension, TPixelType >::PointContainerType

Definition at line 88 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef SmartPointer< Self > itk::ImageSpatialObject2< TDimension, TPixelType >::Pointer

Definition at line 71 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef Superclass::PointType itk::ImageSpatialObject2< TDimension, TPixelType >::PointType

Definition at line 81 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef ImageType::RegionType itk::ImageSpatialObject2< TDimension, TPixelType >::RegionType

Definition at line 79 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef double itk::ImageSpatialObject2< TDimension, TPixelType >::ScalarType

Definition at line 68 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef ImageSpatialObject2< TDimension, TPixelType > itk::ImageSpatialObject2< TDimension, TPixelType >::Self

Definition at line 69 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef ImageType::SizeType itk::ImageSpatialObject2< TDimension, TPixelType >::SizeType

Definition at line 78 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef SpatialObject< TDimension > itk::ImageSpatialObject2< TDimension, TPixelType >::Superclass

Definition at line 70 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
typedef Superclass::TransformType itk::ImageSpatialObject2< TDimension, TPixelType >::TransformType

Definition at line 80 of file itkImageSpatialObject2.h.

Constructor & Destructor Documentation

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
itk::ImageSpatialObject2< TDimension, TPixelType >::ImageSpatialObject2 ( const Self )
protected
template<unsigned int TDimension = 3, class TPixelType = unsigned char>
itk::ImageSpatialObject2< TDimension, TPixelType >::ImageSpatialObject2 ( )
protected
template<unsigned int TDimension = 3, class TPixelType = unsigned char>
virtual itk::ImageSpatialObject2< TDimension, TPixelType >::~ImageSpatialObject2 ( )
protectedvirtual

Member Function Documentation

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
bool itk::ImageSpatialObject2< TDimension, TPixelType >::ComputeLocalBoundingBox ( ) const

Compute the boundaries of the image spatial object.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
virtual const char* itk::ImageSpatialObject2< TDimension, TPixelType >::GetClassName ( ) const
virtual

Run-time type information (and related methods).

Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
const ImageType* itk::ImageSpatialObject2< TDimension, TPixelType >::GetImage ( void  ) const

Get a pointer to the image currently attached to the object.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
virtual InterpolatorType* itk::ImageSpatialObject2< TDimension, TPixelType >::GetInterpolator ( )
virtual
template<unsigned int TDimension = 3, class TPixelType = unsigned char>
unsigned long itk::ImageSpatialObject2< TDimension, TPixelType >::GetMTime ( void  ) const

Returns the latest modified time of the object and its component.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
const char* itk::ImageSpatialObject2< TDimension, TPixelType >::GetPixelType ( )
inline

Definition at line 136 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
int itk::ImageSpatialObject2< TDimension, TPixelType >::GetSlicePosition ( unsigned int  dimension)
inline

Get the slice position

Definition at line 133 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
bool itk::ImageSpatialObject2< TDimension, TPixelType >::IsEvaluableAt ( const PointType point,
unsigned int  depth = 0,
char *  name = NULL 
) const

Return true if the object is evaluable at the requested point, and else otherwise.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
bool itk::ImageSpatialObject2< TDimension, TPixelType >::IsInside ( const PointType point,
unsigned int  depth,
char *  name 
) const

Returns true if the point is inside, false otherwise.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
bool itk::ImageSpatialObject2< TDimension, TPixelType >::IsInside ( const PointType point) const

Test whether a point is inside or outside the object For computational speed purposes, it is faster if the method does not check the name of the class and the current depth

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
static Pointer itk::ImageSpatialObject2< TDimension, TPixelType >::New ( )
static

Method for creation through the object factory.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
void itk::ImageSpatialObject2< TDimension, TPixelType >::operator= ( const Self )
protected
template<unsigned int TDimension = 3, class TPixelType = unsigned char>
void itk::ImageSpatialObject2< TDimension, TPixelType >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protected
template<unsigned int TDimension = 3, class TPixelType = unsigned char>
void itk::ImageSpatialObject2< TDimension, TPixelType >::SetImage ( const ImageType image)

Set the image.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
void itk::ImageSpatialObject2< TDimension, TPixelType >::SetInterpolator ( InterpolatorType interpolator)

Set/Get the interpolator

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
void itk::ImageSpatialObject2< TDimension, TPixelType >::SetSlicePosition ( unsigned int  dimension,
int  position 
)

Set the slice position

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
bool itk::ImageSpatialObject2< TDimension, TPixelType >::ValueAt ( const PointType point,
double value,
unsigned int  depth = 0,
char *  name = NULL 
) const

Returns the value of the image at the requested point. If the point is not inside the object, then an exception is thrown.

See also
ExceptionObject

Field Documentation

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
ImagePointer itk::ImageSpatialObject2< TDimension, TPixelType >::m_Image
protected

Definition at line 152 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
InterpolatorType::Pointer itk::ImageSpatialObject2< TDimension, TPixelType >::m_Interpolator
protected

Definition at line 162 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
std::string itk::ImageSpatialObject2< TDimension, TPixelType >::m_PixelType
protected

Definition at line 160 of file itkImageSpatialObject2.h.

template<unsigned int TDimension = 3, class TPixelType = unsigned char>
int* itk::ImageSpatialObject2< TDimension, TPixelType >::m_SlicePosition
protected

Definition at line 159 of file itkImageSpatialObject2.h.



Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo