18 #ifndef itkImageSpatialObject_h 19 #define itkImageSpatialObject_h 37 template<
unsigned int TDimension = 3,
38 typename TPixelType =
unsigned char 74 void SetImage(
const ImageType *image);
82 unsigned int depth = 0,
char *name = ITK_NULLPTR) const ITK_OVERRIDE;
87 bool ValueAt(const PointType & point,
double & value,
88 unsigned int depth = 0,
char *name = ITK_NULLPTR) const ITK_OVERRIDE;
91 bool IsInside(const PointType & point,
92 unsigned int depth,
char *name) const ITK_OVERRIDE;
97 bool IsInside(const PointType & point) const;
119 itkGetModifiableObjectMacro(Interpolator, InterpolatorType);
124 void operator=(
const Self &) ITK_DELETE_FUNCTION;
137 template <
typename T>
140 itkWarningMacro(
"itk::ImageSpatialObject() : PixelType not recognized");
144 m_PixelType =
"short";
148 m_PixelType =
"unsigned char";
152 m_PixelType =
"unsigned short";
156 m_PixelType =
"float";
160 m_PixelType =
"double";
165 #ifndef ITK_MANUAL_INSTANTIATION 166 #include "itkImageSpatialObject.hxx" 169 #endif //itkImageSpatialObject_h Point< ScalarType, VDimension > PointType
bool ComputeLocalBoundingBox() const override
Superclass::RegionType RegionType
ImageType::IndexType IndexType
Image< PixelType, TDimension > ImageType
BoundingBox< IdentifierType, VDimension, ScalarType, VectorContainerType > BoundingBoxType
bool IsInside(const PointType &point, unsigned int depth, char *name) const override
void SetImage(const ImageType *image)
ImageSpatialObject< TDimension, TPixelType > Self
unsigned long ModifiedTimeType
int GetSlicePosition(unsigned int dimension)
Nearest neighbor interpolation of a scalar image.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
void SetSlicePosition(unsigned int dimension, int position)
Superclass::BoundingBoxType BoundingBoxType
ImageType::ConstPointer ImagePointer
void InternalSetPixelType(const double *)
void SetInterpolator(InterpolatorType *interpolator)
InterpolateImageFunction< ImageType > InterpolatorType
virtual ~ImageSpatialObject()
bool IsEvaluableAt(const PointType &point, unsigned int depth=0, char *name=nullptr) const override
PointContainerType::Pointer PointContainerPointer
void InternalSetPixelType(const short *)
const ImageType * GetImage() const
VectorContainer< IdentifierType, PointType > PointContainerType
Superclass::IndexType IndexType
Implementation of the composite pattern.
SpatialObject< TDimension > Superclass
Superclass::PointType PointType
ImageType::RegionType RegionType
void InternalSetPixelType(const T *)
void InternalSetPixelType(const float *)
Superclass::TransformType TransformType
Base class for all image interpolaters.
SmartPointer< const Self > ConstPointer
Implementation of an image as spatial object.
void InternalSetPixelType(const unsigned short *)
Define a front-end to the STL "vector" container that conforms to the IndexedContainerInterface.
ModifiedTimeType GetMTime(void) const override
Control indentation during Print() invocation.
ScalableAffineTransform< double, VDimension > TransformType
bool ValueAt(const PointType &point, double &value, unsigned int depth=0, char *name=nullptr) const override
void operator=(const Self &) ITK_DELETE_FUNCTION
SmartPointer< Self > Pointer
const char * GetPixelType()
Templated n-dimensional image class.
NearestNeighborInterpolateImageFunction< ImageType > NNInterpolatorType
void PrintSelf(std::ostream &os, Indent indent) const override
InterpolatorType::Pointer m_Interpolator
void InternalSetPixelType(const unsigned char *)