21 #ifndef otbGroundSpacingImageFunction_h
22 #define otbGroundSpacingImageFunction_h
24 #include "itkImageFunction.h"
25 #include "itkNumericTraits.h"
44 template <
class TInputImage,
class TCoordRep =
float>
57 typedef itk::ImageFunction<TInputImage, FloatType, TCoordRep>
Superclass;
79 itkStaticConstMacro(ImageDimension,
unsigned int, InputImageType::ImageDimension);
88 this->ConvertPointToNearestIndex(point, index);
89 return this->EvaluateAtIndex(index);
96 this->ConvertContinuousIndexToNearestIndex(cindex, index);
97 return this->EvaluateAtIndex(index);
100 PointType GetPixelLocation(
const IndexType& index)
const;
107 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
111 void operator=(
const Self&) =
delete;
119 #ifndef OTB_MANUAL_INSTANTIATION