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(); }
176 m_Image->TransformPhysicalPointToContinuousIndex(point, index);
191 m_Image->TransformPhysicalPointToContinuousIndex(point, cindex);
199 m_Image->TransformPhysicalPointToContinuousIndex(point, cindex);
207 index.CopyWithRound(cindex);
210 itkGetConstReferenceMacro(StartIndex,
IndexType);
211 itkGetConstReferenceMacro(EndIndex,
IndexType);
237 #ifndef ITK_MANUAL_INSTANTIATION
238 #include "itkImageFunction.hxx"
void ConvertPointToContinuousIndex(const PointType &point, ContinuousIndexType &cindex) const
InputImageType::ConstPointer InputImageConstPointer
Light weight base class for most itk classes.
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
virtual TOutput EvaluateAtContinuousIndex(const ContinuousIndexType &index) const =0
void PrintSelf(std::ostream &os, Indent indent) const override
ContinuousIndexType m_StartContinuousIndex
virtual void SetInputImage(const InputImageType *ptr)
static const unsigned int ImageDimension
const InputImageType * GetInputImage() const
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
ContinuousIndex< TCoordRep, itkGetStaticConstMacro(ImageDimension) > ContinuousIndexType
virtual bool IsInsideBuffer(const PointType &point) const
virtual bool IsInsideBuffer(const ContinuousIndexType &index) const
virtual TOutput Evaluate(const PointType &point) const override=0
A templated class holding a point in n-Dimensional image space.
void operator=(const Self &)
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
virtual TOutput EvaluateAtIndex(const IndexType &index) const =0
SmartPointer< Self > Pointer