![]() |
Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
Implementation of an image as spatial object. More...
#include <itkImageSpatialObject2.h>
Public Types | |
typedef Superclass::BoundingBoxType | BoundingBoxType |
typedef SmartPointer< const Self > | ConstPointer |
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< Self > | Pointer |
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 ImageType * | GetImage (void) const |
virtual InterpolatorType * | GetInterpolator () |
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) const |
bool | IsInside (const PointType &point, unsigned int depth, char *name) 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 |
int * | m_SlicePosition |
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.
Definition at line 59 of file itkImageSpatialObject2.h.
typedef Superclass::BoundingBoxType itk::ImageSpatialObject2< TDimension, TPixelType >::BoundingBoxType |
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
Definition at line 79 of file itkImageSpatialObject2.h.
typedef SmartPointer< const Self > itk::ImageSpatialObject2< TDimension, TPixelType >::ConstPointer |
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
Definition at line 69 of file itkImageSpatialObject2.h.
typedef ImageType::ConstPointer itk::ImageSpatialObject2< TDimension, TPixelType >::ImagePointer |
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
Definition at line 73 of file itkImageSpatialObject2.h.
typedef Image< PixelType, TDimension > itk::ImageSpatialObject2< TDimension, TPixelType >::ImageType |
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
Definition at line 72 of file itkImageSpatialObject2.h.
typedef ImageType::IndexType itk::ImageSpatialObject2< TDimension, TPixelType >::IndexType |
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
Definition at line 74 of file itkImageSpatialObject2.h.
typedef InterpolateImageFunction<ImageType> itk::ImageSpatialObject2< TDimension, TPixelType >::InterpolatorType |
Definition at line 80 of file itkImageSpatialObject2.h.
typedef NearestNeighborInterpolateImageFunction<ImageType> itk::ImageSpatialObject2< TDimension, TPixelType >::NNInterpolatorType |
Definition at line 83 of file itkImageSpatialObject2.h.
typedef TPixelType itk::ImageSpatialObject2< TDimension, TPixelType >::PixelType |
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
Definition at line 71 of file itkImageSpatialObject2.h.
typedef PointContainerType::Pointer itk::ImageSpatialObject2< TDimension, TPixelType >::PointContainerPointer |
Definition at line 86 of file itkImageSpatialObject2.h.
typedef VectorContainer< unsigned long, PointType> itk::ImageSpatialObject2< TDimension, TPixelType >::PointContainerType |
Definition at line 85 of file itkImageSpatialObject2.h.
typedef SmartPointer< Self > itk::ImageSpatialObject2< TDimension, TPixelType >::Pointer |
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
Definition at line 68 of file itkImageSpatialObject2.h.
typedef Superclass::PointType itk::ImageSpatialObject2< TDimension, TPixelType >::PointType |
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
Definition at line 78 of file itkImageSpatialObject2.h.
typedef ImageType::RegionType itk::ImageSpatialObject2< TDimension, TPixelType >::RegionType |
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
Definition at line 76 of file itkImageSpatialObject2.h.
typedef double itk::ImageSpatialObject2< TDimension, TPixelType >::ScalarType |
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
Definition at line 65 of file itkImageSpatialObject2.h.
typedef ImageSpatialObject2< TDimension, TPixelType > itk::ImageSpatialObject2< TDimension, TPixelType >::Self |
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
Definition at line 66 of file itkImageSpatialObject2.h.
typedef ImageType::SizeType itk::ImageSpatialObject2< TDimension, TPixelType >::SizeType |
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
Definition at line 75 of file itkImageSpatialObject2.h.
typedef SpatialObject< TDimension > itk::ImageSpatialObject2< TDimension, TPixelType >::Superclass |
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
Definition at line 67 of file itkImageSpatialObject2.h.
typedef Superclass::TransformType itk::ImageSpatialObject2< TDimension, TPixelType >::TransformType |
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
Definition at line 77 of file itkImageSpatialObject2.h.
itk::ImageSpatialObject2< TDimension, TPixelType >::ImageSpatialObject2 | ( | const Self & | ) | [protected] |
itk::ImageSpatialObject2< TDimension, TPixelType >::ImageSpatialObject2 | ( | ) | [protected] |
virtual itk::ImageSpatialObject2< TDimension, TPixelType >::~ImageSpatialObject2 | ( | ) | [protected, virtual] |
bool itk::ImageSpatialObject2< TDimension, TPixelType >::ComputeLocalBoundingBox | ( | ) | const |
Compute the boundaries of the image spatial object.
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
virtual const char* itk::ImageSpatialObject2< TDimension, TPixelType >::GetClassName | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
const ImageType* itk::ImageSpatialObject2< TDimension, TPixelType >::GetImage | ( | void | ) | const |
Get a pointer to the image currently attached to the object.
virtual InterpolatorType* itk::ImageSpatialObject2< TDimension, TPixelType >::GetInterpolator | ( | ) | [virtual] |
unsigned long itk::ImageSpatialObject2< TDimension, TPixelType >::GetMTime | ( | void | ) | const |
Returns the latest modified time of the object and its component.
const char* itk::ImageSpatialObject2< TDimension, TPixelType >::GetPixelType | ( | ) | [inline] |
Definition at line 134 of file itkImageSpatialObject2.h.
int itk::ImageSpatialObject2< TDimension, TPixelType >::GetSlicePosition | ( | unsigned int | dimension | ) | [inline] |
Get the slice position
Definition at line 131 of file itkImageSpatialObject2.h.
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.
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 >.
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 >.
static Pointer itk::ImageSpatialObject2< TDimension, TPixelType >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
void itk::ImageSpatialObject2< TDimension, TPixelType >::operator= | ( | const Self & | ) | [protected] |
void itk::ImageSpatialObject2< TDimension, TPixelType >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected] |
Reimplemented in itk::ImageMaskSpatialObject2< TDimension >.
void itk::ImageSpatialObject2< TDimension, TPixelType >::SetImage | ( | const ImageType * | image | ) |
Set the image.
void itk::ImageSpatialObject2< TDimension, TPixelType >::SetInterpolator | ( | InterpolatorType * | interpolator | ) |
Set/Get the interpolator
void itk::ImageSpatialObject2< TDimension, TPixelType >::SetSlicePosition | ( | unsigned int | dimension, |
int | position | ||
) |
Set the slice position
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.
ImagePointer itk::ImageSpatialObject2< TDimension, TPixelType >::m_Image [protected] |
Definition at line 147 of file itkImageSpatialObject2.h.
InterpolatorType::Pointer itk::ImageSpatialObject2< TDimension, TPixelType >::m_Interpolator [protected] |
Definition at line 157 of file itkImageSpatialObject2.h.
std::string itk::ImageSpatialObject2< TDimension, TPixelType >::m_PixelType [protected] |
Definition at line 155 of file itkImageSpatialObject2.h.
int* itk::ImageSpatialObject2< TDimension, TPixelType >::m_SlicePosition [protected] |
Definition at line 154 of file itkImageSpatialObject2.h.
Generated on 24-10-2011 for elastix by ![]() |
![]() |