18 #ifndef itkImageFunction_h 19 #define itkImageFunction_h 56 typename TCoordRep =
float 59 public FunctionBase< Point< TCoordRep, TInputImage::ImageDimension >, TOutput >
64 TInputImage::ImageDimension);
96 typedef typename InputImageType::IndexType
IndexType;
114 {
return m_Image.GetPointer(); }
118 virtual TOutput
Evaluate(
const PointType & point)
const ITK_OVERRIDE = 0;
176 m_Image->TransformPhysicalPointToContinuousIndex(point, index);
187 IndexType & index)
const 191 m_Image->TransformPhysicalPointToContinuousIndex(point, cindex);
199 m_Image->TransformPhysicalPointToContinuousIndex(point, cindex);
205 IndexType & index)
const 207 index.CopyWithRound(cindex);
210 itkGetConstReferenceMacro(StartIndex, IndexType);
211 itkGetConstReferenceMacro(EndIndex, IndexType);
233 void operator=(const Self &) ITK_DELETE_FUNCTION;
237 #ifndef ITK_MANUAL_INSTANTIATION 238 #include "itkImageFunction.hxx" void PrintSelf(std::ostream &os, Indent indent) const override
void ConvertPointToContinuousIndex(const PointType &point, ContinuousIndexType &cindex) const
InputImageType::ConstPointer InputImageConstPointer
virtual TOutput EvaluateAtIndex(const IndexType &index) const =0
Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) > PointType
ContinuousIndexType m_EndContinuousIndex
virtual bool IsInsideBuffer(const IndexType &index) const
signed long IndexValueType
void ConvertPointToNearestIndex(const PointType &point, IndexType &index) const
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
ContinuousIndexType m_StartContinuousIndex
virtual void SetInputImage(const InputImageType *ptr)
static const unsigned int ImageDimension
const InputImageType * GetInputImage() const
virtual TOutput Evaluate(const PointType &point) const override=0
Base class for all ITK function objects.
InputImageType::PixelType InputPixelType
SmartPointer< const Self > ConstPointer
InputImageType::IndexType IndexType
TInputImage InputImageType
FunctionBase< Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) >, TOutput > Superclass
virtual TOutput EvaluateAtContinuousIndex(const ContinuousIndexType &index) const =0
ContinuousIndex< TCoordRep, itkGetStaticConstMacro(ImageDimension) > ContinuousIndexType
virtual bool IsInsideBuffer(const PointType &point) const
virtual bool IsInsideBuffer(const ContinuousIndexType &index) const
A templated class holding a point in n-Dimensional image space.
Control indentation during Print() invocation.
InputImageConstPointer m_Image
void ConvertContinuousIndexToNearestIndex(const ContinuousIndexType &cindex, IndexType &index) const
A templated class holding a geometric point in n-Dimensional space.
Evaluates a function of an image at specified position.
InputImageType::IndexValueType IndexValueType
SmartPointer< Self > Pointer