37 #ifndef __itkImageSpatialObject2_h 38 #define __itkImageSpatialObject2_h 41 #include "itkExceptionObject.h" 42 #include "itkSpatialObject.h" 43 #include "itkInterpolateImageFunction.h" 44 #include "itkNearestNeighborInterpolateImageFunction.h" 59 template<
unsigned int TDimension = 3,
60 class TPixelType =
unsigned char 63 public SpatialObject< TDimension >
85 typedef NearestNeighborInterpolateImageFunction< ImageType >
98 void SetImage(
const ImageType * image );
101 const ImageType *
GetImage(
void )
const;
106 unsigned int depth = 0,
char * name = NULL )
const;
111 bool ValueAt(
const PointType & point,
double & value,
112 unsigned int depth = 0,
char * name = NULL )
const;
115 bool IsInside(
const PointType & point,
116 unsigned int depth,
char * name )
const;
121 bool IsInside(
const PointType & point )
const;
127 unsigned long GetMTime(
void )
const;
145 itkGetObjectMacro( Interpolator, InterpolatorType );
157 void PrintSelf( std::ostream & os, Indent indent )
const;
167 #ifndef ITK_MANUAL_INSTANTIATION 168 #include "itkImageSpatialObject2.hxx" 171 #endif //__itkImageSpatialObject2_h const char * GetPixelType()
InterpolatorType::Pointer m_Interpolator
Superclass::PointType PointType
bool IsInside(const PointType &point, unsigned int depth, char *name) const
void operator=(const Self &)
SmartPointer< const Self > ConstPointer
void SetImage(const ImageType *image)
ImageType::IndexType IndexType
unsigned long GetMTime(void) const
SpatialObject< TDimension > Superclass
int GetSlicePosition(unsigned int dimension)
Implementation of an image as spatial object.
bool IsEvaluableAt(const PointType &point, unsigned int depth=0, char *name=NULL) const
Image< PixelType, TDimension > ImageType
InterpolateImageFunction< ImageType > InterpolatorType
SmartPointer< Self > Pointer
virtual ~ImageSpatialObject2()
void PrintSelf(std::ostream &os, Indent indent) const
const ImageType * GetImage(void) const
Superclass::BoundingBoxType BoundingBoxType
PointContainerType::Pointer PointContainerPointer
Superclass::TransformType TransformType
VectorContainer< unsigned long, PointType > PointContainerType
void SetInterpolator(InterpolatorType *interpolator)
bool ValueAt(const PointType &point, double &value, unsigned int depth=0, char *name=NULL) const
ImageSpatialObject2< TDimension, TPixelType > Self
ImageType::RegionType RegionType
bool ComputeLocalBoundingBox() const
void SetSlicePosition(unsigned int dimension, int position)
ImageType::SizeType SizeType
NearestNeighborInterpolateImageFunction< ImageType > NNInterpolatorType
ImageType::ConstPointer ImagePointer