|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkImageSpatialObject_h
19 #define itkImageSpatialObject_h
39 template <
unsigned int TDimension = 3,
typename TPixelType =
unsigned char>
61 static constexpr
unsigned int ObjectDimension = TDimension;
84 IsInsideInObjectSpace(
const PointType & point)
const override;
87 using Superclass::IsInsideInObjectSpace;
92 ValueAtInObjectSpace(
const PointType & point,
94 unsigned int depth = 0,
95 const std::string & name =
"")
const override;
99 GetMTime()
const override;
104 SetSliceNumber(
unsigned int dimension,
int position);
108 itkGetConstMacro(SliceNumber,
IndexType);
112 return m_SliceNumber[dimension];
116 #if !defined(ITK_LEGACY_REMOVE)
117 itkLegacyMacro(
const char * GetPixelTypeName()) {
return m_PixelType.c_str(); }
122 SetInterpolator(InterpolatorType * interpolator);
123 itkGetConstMacro(Interpolator, InterpolatorType *);
129 ComputeMyBoundingBox()
override;
131 ImageSpatialObject();
132 ~ImageSpatialObject()
override;
135 PrintSelf(std::ostream & os, Indent indent)
const override;
138 InternalClone()
const override;
145 #if !defined(ITK_LEGACY_REMOVE)
146 std::string m_PixelType;
151 #if !defined(ITK_LEGACY_REMOVE)
152 template <
typename T>
154 SetPixelTypeName(
const T *)
156 itkWarningMacro(
"itk::ImageSpatialObject() : PixelType not recognized");
160 SetPixelTypeName(
const short *)
162 m_PixelType =
"short";
166 SetPixelTypeName(
const unsigned char *)
168 m_PixelType =
"unsigned char";
172 SetPixelTypeName(
const unsigned short *)
174 m_PixelType =
"unsigned short";
178 SetPixelTypeName(
const float *)
180 m_PixelType =
"float";
184 SetPixelTypeName(
const double *)
186 m_PixelType =
"double";
192 #ifndef ITK_MANUAL_INSTANTIATION
193 # include "itkImageSpatialObject.hxx"
196 #endif // itkImageSpatialObject_h
InterpolatorType::Pointer m_Interpolator
SizeValueType ModifiedTimeType
ImageBaseType::PointType PointType
SmartPointer< Self > Pointer
Implementation of an image as spatial object.
int GetSliceNumber(unsigned int dimension)
ImageBaseType::IndexType IndexType
typename ImageType::ConstPointer ImagePointer
Implementation of the composite pattern.
typename ImageType::IndexType IndexType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
A templated class holding a point in n-Dimensional image space.
Base class for most ITK classes.
Templated n-dimensional image class.
Nearest neighbor interpolation of a scalar image.
Base class for all image interpolators.
Base class for all data objects in ITK.
typename Superclass::PointType PointType