![]() |
Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages |
#include <itkImageSpatialObject2.h>
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 62 of file 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 () | |
ImageSpatialObject2 (const Self &) | |
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 |
typedef Superclass::BoundingBoxType itk::ImageSpatialObject2< TDimension, TPixelType >::BoundingBoxType |
Definition at line 82 of file itkImageSpatialObject2.h.
typedef SmartPointer< const Self > itk::ImageSpatialObject2< TDimension, TPixelType >::ConstPointer |
Definition at line 72 of file itkImageSpatialObject2.h.
typedef ImageType::ConstPointer itk::ImageSpatialObject2< TDimension, TPixelType >::ImagePointer |
Definition at line 76 of file itkImageSpatialObject2.h.
typedef Image< PixelType, TDimension > itk::ImageSpatialObject2< TDimension, TPixelType >::ImageType |
Definition at line 75 of file itkImageSpatialObject2.h.
typedef ImageType::IndexType itk::ImageSpatialObject2< TDimension, TPixelType >::IndexType |
Definition at line 77 of file itkImageSpatialObject2.h.
typedef InterpolateImageFunction< ImageType > itk::ImageSpatialObject2< TDimension, TPixelType >::InterpolatorType |
Definition at line 83 of file itkImageSpatialObject2.h.
typedef NearestNeighborInterpolateImageFunction< ImageType > itk::ImageSpatialObject2< TDimension, TPixelType >::NNInterpolatorType |
Definition at line 86 of file itkImageSpatialObject2.h.
typedef TPixelType itk::ImageSpatialObject2< TDimension, TPixelType >::PixelType |
Definition at line 74 of file itkImageSpatialObject2.h.
typedef PointContainerType::Pointer itk::ImageSpatialObject2< TDimension, TPixelType >::PointContainerPointer |
Definition at line 89 of file itkImageSpatialObject2.h.
typedef VectorContainer< unsigned long, PointType > itk::ImageSpatialObject2< TDimension, TPixelType >::PointContainerType |
Definition at line 88 of file itkImageSpatialObject2.h.
typedef SmartPointer< Self > itk::ImageSpatialObject2< TDimension, TPixelType >::Pointer |
Definition at line 71 of file itkImageSpatialObject2.h.
typedef Superclass::PointType itk::ImageSpatialObject2< TDimension, TPixelType >::PointType |
Definition at line 81 of file itkImageSpatialObject2.h.
typedef ImageType::RegionType itk::ImageSpatialObject2< TDimension, TPixelType >::RegionType |
Definition at line 79 of file itkImageSpatialObject2.h.
typedef double itk::ImageSpatialObject2< TDimension, TPixelType >::ScalarType |
Definition at line 68 of file itkImageSpatialObject2.h.
typedef ImageSpatialObject2< TDimension, TPixelType > itk::ImageSpatialObject2< TDimension, TPixelType >::Self |
Definition at line 69 of file itkImageSpatialObject2.h.
typedef ImageType::SizeType itk::ImageSpatialObject2< TDimension, TPixelType >::SizeType |
Definition at line 78 of file itkImageSpatialObject2.h.
typedef SpatialObject< TDimension > itk::ImageSpatialObject2< TDimension, TPixelType >::Superclass |
Definition at line 70 of file itkImageSpatialObject2.h.
typedef Superclass::TransformType itk::ImageSpatialObject2< TDimension, TPixelType >::TransformType |
Definition at line 80 of file itkImageSpatialObject2.h.
|
protected |
|
protected |
|
protectedvirtual |
bool itk::ImageSpatialObject2< TDimension, TPixelType >::ComputeLocalBoundingBox | ( | ) | const |
Compute the boundaries of the image spatial object.
|
virtual |
Run-time type information (and related methods).
const ImageType* itk::ImageSpatialObject2< TDimension, TPixelType >::GetImage | ( | void | ) | const |
Get a pointer to the image currently attached to the object.
|
virtual |
unsigned long itk::ImageSpatialObject2< TDimension, TPixelType >::GetMTime | ( | void | ) | const |
Returns the latest modified time of the object and its component.
|
inline |
Definition at line 136 of file itkImageSpatialObject2.h.
|
inline |
Get the slice position
Definition at line 133 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
bool itk::ImageSpatialObject2< TDimension, TPixelType >::IsInside | ( | const PointType & | point, |
unsigned int | depth, | ||
char * | name | ||
) | const |
Returns true if the point is inside, false otherwise.
|
static |
Method for creation through the object factory.
|
protected |
|
protected |
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.
|
protected |
Definition at line 152 of file itkImageSpatialObject2.h.
|
protected |
Definition at line 162 of file itkImageSpatialObject2.h.
|
protected |
Definition at line 160 of file itkImageSpatialObject2.h.
|
protected |
Definition at line 159 of file itkImageSpatialObject2.h.
Generated on OURCE_DATE_EPOCH for elastix by ![]() |
![]() |