18 #ifndef itkImageSpatialObject_h
19 #define itkImageSpatialObject_h
37 template<
unsigned int TDimension = 3,
38 typename TPixelType =
unsigned char
81 bool IsEvaluableAt(
const PointType & point,
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;
92 unsigned int depth,
char *name) const ITK_OVERRIDE;
97 bool IsInside(const
PointType & point) const;
100 bool ComputeLocalBoundingBox() const ITK_OVERRIDE;
106 void SetSlicePosition(
unsigned int dimension,
int position);
109 int GetSlicePosition(
unsigned int dimension)
110 {
return m_SlicePosition[dimension]; }
114 return m_PixelType.c_str();
118 void SetInterpolator(InterpolatorType *interpolator);
130 void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
132 int * m_SlicePosition;
133 std::
string m_PixelType;
136 template <typename T>
137 void InternalSetPixelType(const T *)
139 itkWarningMacro(
"itk::ImageSpatialObject() : PixelType not recognized");
143 m_PixelType =
"short";
147 m_PixelType =
"unsigned char";
151 m_PixelType =
"unsigned short";
155 m_PixelType =
"float";
159 m_PixelType =
"double";
164 #ifndef ITK_MANUAL_INSTANTIATION
165 #include "itkImageSpatialObject.hxx"
168 #endif //itkImageSpatialObject_h
Superclass::RegionType RegionType
ImageType::IndexType IndexType
Image< PixelType, TDimension > ImageType
ImageSpatialObject< TDimension, TPixelType > Self
unsigned long ModifiedTimeType
Nearest neighbor interpolation of a scalar image.
Superclass::BoundingBoxType BoundingBoxType
ImageType::ConstPointer ImagePointer
void InternalSetPixelType(const double *)
InterpolateImageFunction< ImageType > InterpolatorType
PointContainerType::Pointer PointContainerPointer
void InternalSetPixelType(const short *)
ImageBaseType::PointType PointType
VectorContainer< IdentifierType, PointType > PointContainerType
Implementation of the composite pattern.
SpatialObject< TDimension > Superclass
Superclass::PointType PointType
ImageType::RegionType RegionType
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.
Control indentation during Print() invocation.
SmartPointer< Self > Pointer
Base class for all data objects in ITK.
const char * GetPixelType()
Templated n-dimensional image class.
NearestNeighborInterpolateImageFunction< ImageType > NNInterpolatorType
void InternalSetPixelType(const unsigned char *)