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>

Inheritance diagram for itk::ImageMaskSpatialObject2< TDimension >:
Inheritance graph
[legend]
Collaboration diagram for itk::ImageMaskSpatialObject2< TDimension >:
Collaboration 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
< ImageType
SliceIteratorType
typedef ImageSpatialObject2
< 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

Static Public Member Functions

static Pointer New ()

Protected Member Functions

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

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 53 of file itkImageMaskSpatialObject2.h.


Member Typedef Documentation

template<unsigned int TDimension = 3>
typedef Superclass::BoundingBoxType itk::ImageMaskSpatialObject2< TDimension >::BoundingBoxType
template<unsigned int TDimension = 3>
typedef SmartPointer< const Self > itk::ImageMaskSpatialObject2< TDimension >::ConstPointer
template<unsigned int TDimension = 3>
typedef Superclass::ImagePointer itk::ImageMaskSpatialObject2< TDimension >::ImagePointer
template<unsigned int TDimension = 3>
typedef Superclass::ImageType itk::ImageMaskSpatialObject2< TDimension >::ImageType
template<unsigned int TDimension = 3>
typedef Superclass::IndexType itk::ImageMaskSpatialObject2< TDimension >::IndexType
template<unsigned int TDimension = 3>
typedef Superclass::PixelType itk::ImageMaskSpatialObject2< TDimension >::PixelType
template<unsigned int TDimension = 3>
typedef SmartPointer< Self > itk::ImageMaskSpatialObject2< TDimension >::Pointer
template<unsigned int TDimension = 3>
typedef Superclass::PointType itk::ImageMaskSpatialObject2< TDimension >::PointType
template<unsigned int TDimension = 3>
typedef Superclass::RegionType itk::ImageMaskSpatialObject2< TDimension >::RegionType
template<unsigned int TDimension = 3>
typedef Superclass::ScalarType itk::ImageMaskSpatialObject2< TDimension >::ScalarType
template<unsigned int TDimension = 3>
typedef ImageMaskSpatialObject2< TDimension > itk::ImageMaskSpatialObject2< TDimension >::Self
template<unsigned int TDimension = 3>
typedef Superclass::SizeType itk::ImageMaskSpatialObject2< TDimension >::SizeType
template<unsigned int TDimension = 3>
typedef itk::ImageSliceConstIteratorWithIndex< ImageType > itk::ImageMaskSpatialObject2< TDimension >::SliceIteratorType

Definition at line 76 of file itkImageMaskSpatialObject2.h.

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

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 ( ) [protected, virtual]

Member Function Documentation

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

Compute the boundaries of the image mask spatial object.

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

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.

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

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

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

template<unsigned int TDimension = 3>
static Pointer itk::ImageMaskSpatialObject2< TDimension >::New ( ) [static]

Method for creation through the object factory.

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

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 11-05-2012 for elastix by doxygen 1.7.6.1 elastix logo