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
itk::ImageMaskSpatialObject2< TDimension > Class Template Reference

#include <itkImageMaskSpatialObject2.h>

Detailed Description

template<unsigned int TDimension = 3>
class itk::ImageMaskSpatialObject2< TDimension >

Implementation of an image mask 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.

Definition at line 56 of file itkImageMaskSpatialObject2.h.

Inheritance diagram for itk::ImageMaskSpatialObject2< TDimension >:
Inheritance graph
[legend]

Public Types

typedef Superclass::BoundingBoxType BoundingBoxType
 
typedef SmartPointer< const SelfConstPointer
 
typedef Superclass::ImagePointer ImagePointer
 
typedef Superclass::ImageType ImageType
 
typedef Superclass::IndexType IndexType
 
typedef Superclass::PixelType PixelType
 
typedef SmartPointer< SelfPointer
 
typedef Superclass::PointType PointType
 
typedef Superclass::RegionType RegionType
 
typedef Superclass::ScalarType ScalarType
 
typedef ImageMaskSpatialObject2< TDimension > Self
 
typedef Superclass::SizeType SizeType
 
typedef itk::ImageSliceConstIteratorWithIndex< ImageTypeSliceIteratorType
 
typedef ImageSpatialObject2< TDimension > Superclass
 
typedef Superclass::TransformType TransformType
 
- Public Types inherited from itk::ImageSpatialObject2< TDimension, unsigned char >
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 unsigned char 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, unsigned char > Self
 
typedef ImageType::SizeType SizeType
 
typedef SpatialObject< TDimension > Superclass
 
typedef Superclass::TransformType TransformType
 

Public Member Functions

bool ComputeLocalBoundingBox () const
 
void ComputeLocalBoundingBoxIndexAndSize (IndexType &index, SizeType &size) const
 
RegionType GetAxisAlignedBoundingBoxRegion () const
 
virtual const char * GetClassName () const
 
bool IsInside (const PointType &point, unsigned int depth, char *name) const
 
virtual bool IsInside (const PointType &point) const
 
- Public Member Functions inherited from itk::ImageSpatialObject2< TDimension, unsigned char >
bool ComputeLocalBoundingBox () 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 ()
 
- Static Public Member Functions inherited from itk::ImageSpatialObject2< TDimension, unsigned char >
static Pointer New ()
 

Protected Member Functions

 ImageMaskSpatialObject2 (const Self &)
 
 ImageMaskSpatialObject2 ()
 
void operator= (const Self &)
 
void PrintSelf (std::ostream &os, Indent indent) const
 
virtual ~ImageMaskSpatialObject2 ()
 
- Protected Member Functions inherited from itk::ImageSpatialObject2< TDimension, unsigned char >
 ImageSpatialObject2 (const Self &)
 
 ImageSpatialObject2 ()
 
void operator= (const Self &)
 
void PrintSelf (std::ostream &os, Indent indent) const
 
virtual ~ImageSpatialObject2 ()
 

Additional Inherited Members

- Protected Attributes inherited from itk::ImageSpatialObject2< TDimension, unsigned char >
ImagePointer m_Image
 
InterpolatorType::Pointer m_Interpolator
 
std::string m_PixelType
 
intm_SlicePosition
 

Member Typedef Documentation

template<unsigned int TDimension = 3>
typedef Superclass::BoundingBoxType itk::ImageMaskSpatialObject2< TDimension >::BoundingBoxType

Definition at line 76 of file itkImageMaskSpatialObject2.h.

template<unsigned int TDimension = 3>
typedef SmartPointer< const Self > itk::ImageMaskSpatialObject2< TDimension >::ConstPointer

Definition at line 65 of file itkImageMaskSpatialObject2.h.

template<unsigned int TDimension = 3>
typedef Superclass::ImagePointer itk::ImageMaskSpatialObject2< TDimension >::ImagePointer

Definition at line 70 of file itkImageMaskSpatialObject2.h.

template<unsigned int TDimension = 3>
typedef Superclass::ImageType itk::ImageMaskSpatialObject2< TDimension >::ImageType

Definition at line 69 of file itkImageMaskSpatialObject2.h.

template<unsigned int TDimension = 3>
typedef Superclass::IndexType itk::ImageMaskSpatialObject2< TDimension >::IndexType

Definition at line 71 of file itkImageMaskSpatialObject2.h.

template<unsigned int TDimension = 3>
typedef Superclass::PixelType itk::ImageMaskSpatialObject2< TDimension >::PixelType

Definition at line 68 of file itkImageMaskSpatialObject2.h.

template<unsigned int TDimension = 3>
typedef SmartPointer< Self > itk::ImageMaskSpatialObject2< TDimension >::Pointer

Definition at line 64 of file itkImageMaskSpatialObject2.h.

template<unsigned int TDimension = 3>
typedef Superclass::PointType itk::ImageMaskSpatialObject2< TDimension >::PointType

Definition at line 75 of file itkImageMaskSpatialObject2.h.

template<unsigned int TDimension = 3>
typedef Superclass::RegionType itk::ImageMaskSpatialObject2< TDimension >::RegionType

Definition at line 73 of file itkImageMaskSpatialObject2.h.

template<unsigned int TDimension = 3>
typedef Superclass::ScalarType itk::ImageMaskSpatialObject2< TDimension >::ScalarType

Definition at line 67 of file itkImageMaskSpatialObject2.h.

template<unsigned int TDimension = 3>
typedef ImageMaskSpatialObject2< TDimension > itk::ImageMaskSpatialObject2< TDimension >::Self

Definition at line 62 of file itkImageMaskSpatialObject2.h.

template<unsigned int TDimension = 3>
typedef Superclass::SizeType itk::ImageMaskSpatialObject2< TDimension >::SizeType

Definition at line 72 of file itkImageMaskSpatialObject2.h.

template<unsigned int TDimension = 3>
typedef itk::ImageSliceConstIteratorWithIndex< ImageType > itk::ImageMaskSpatialObject2< TDimension >::SliceIteratorType

Definition at line 79 of file itkImageMaskSpatialObject2.h.

template<unsigned int TDimension = 3>
typedef ImageSpatialObject2< TDimension > itk::ImageMaskSpatialObject2< TDimension >::Superclass

Definition at line 63 of file itkImageMaskSpatialObject2.h.

template<unsigned int TDimension = 3>
typedef Superclass::TransformType itk::ImageMaskSpatialObject2< TDimension >::TransformType

Definition at line 74 of file itkImageMaskSpatialObject2.h.

Constructor & Destructor Documentation

template<unsigned int TDimension = 3>
itk::ImageMaskSpatialObject2< TDimension >::ImageMaskSpatialObject2 ( const Self )
protected
template<unsigned int TDimension = 3>
itk::ImageMaskSpatialObject2< TDimension >::ImageMaskSpatialObject2 ( )
protected
template<unsigned int TDimension = 3>
virtual itk::ImageMaskSpatialObject2< TDimension >::~ImageMaskSpatialObject2 ( )
protectedvirtual

Member Function Documentation

template<unsigned int TDimension = 3>
bool itk::ImageMaskSpatialObject2< TDimension >::ComputeLocalBoundingBox ( ) const

Compute the boundaries of the image mask spatial object.

template<unsigned int TDimension = 3>
void itk::ImageMaskSpatialObject2< TDimension >::ComputeLocalBoundingBoxIndexAndSize ( IndexType index,
SizeType size 
) const
template<unsigned int TDimension = 3>
RegionType itk::ImageMaskSpatialObject2< TDimension >::GetAxisAlignedBoundingBoxRegion ( ) const

Compute axis aligned bounding box from the image mask. The bounding box is returned as an image region. Each call to this function will recompute the region. This function is useful in cases, where you may have a mask image resulting from say a segmentation and you want to get the smallest box region that encapsulates the mask image. Currently this is done only for 3D volumes.

template<unsigned int TDimension = 3>
virtual const char* itk::ImageMaskSpatialObject2< TDimension >::GetClassName ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageSpatialObject2< TDimension, unsigned char >.

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

Returns true if the point is inside, false otherwise.

template<unsigned int TDimension = 3>
virtual bool itk::ImageMaskSpatialObject2< TDimension >::IsInside ( const PointType point) const
virtual

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>
static Pointer itk::ImageMaskSpatialObject2< TDimension >::New ( )
static

Method for creation through the object factory.

template<unsigned int TDimension = 3>
void itk::ImageMaskSpatialObject2< TDimension >::operator= ( const Self )
protected
template<unsigned int TDimension = 3>
void itk::ImageMaskSpatialObject2< TDimension >::PrintSelf ( std::ostream &  os,
Indent  indent 
) const
protected


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