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>

Inheritance diagram for itk::ImageSpatialObject2< TDimension, TPixelType >:
Inheritance graph
[legend]
Collaboration diagram for itk::ImageSpatialObject2< TDimension, TPixelType >:
Collaboration 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
< ImageType
InterpolatorType
typedef
NearestNeighborInterpolateImageFunction
< ImageType
NNInterpolatorType
typedef TPixelType PixelType
typedef PointContainerType::Pointer PointContainerPointer
typedef VectorContainer
< unsigned long, PointType
PointContainerType
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

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 59 of file itkImageSpatialObject2.h.

Member Typedef Documentation

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

Definition at line 79 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 69 of file itkImageSpatialObject2.h.

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

Definition at line 73 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 72 of file itkImageSpatialObject2.h.

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

Definition at line 74 of file itkImageSpatialObject2.h.

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

Definition at line 80 of file itkImageSpatialObject2.h.

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

Definition at line 83 of file itkImageSpatialObject2.h.

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

Definition at line 71 of file itkImageSpatialObject2.h.

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

Definition at line 86 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 85 of file itkImageSpatialObject2.h.

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

Definition at line 68 of file itkImageSpatialObject2.h.

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

Definition at line 78 of file itkImageSpatialObject2.h.

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

Definition at line 76 of file itkImageSpatialObject2.h.

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

Definition at line 65 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 66 of file itkImageSpatialObject2.h.

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

Definition at line 75 of file itkImageSpatialObject2.h.

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

Definition at line 67 of file itkImageSpatialObject2.h.

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

Definition at line 77 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.

Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.

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 134 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 131 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.

Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.

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

Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.

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

Method for creation through the object factory.

Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.

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 147 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 157 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 155 of file itkImageSpatialObject2.h.

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

Definition at line 154 of file itkImageSpatialObject2.h.



Generated on 21-03-2014 for elastix by doxygen 1.8.1.2 elastix logo