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;
119 #ifndef OTB_MANUAL_INSTANTIATION
Calculate the approximate ground spacing in X and Y directions.
itk::SmartPointer< Self > Pointer
GroundSpacingImageFunction Self
itk::SmartPointer< const Self > ConstPointer
~GroundSpacingImageFunction() override
Superclass::PointType PointType
itk::Vector< ValueType, 2 > FloatType
Superclass::IndexType IndexType
TInputImage InputImageType
FloatType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
void operator=(const Self &)=delete
otb::GenericRSTransform< double > TransformType
itk::ImageFunction< TInputImage, FloatType, TCoordRep > Superclass
Superclass::OutputType OutputType
GroundSpacingImageFunction(const Self &)=delete
Superclass::ContinuousIndexType ContinuousIndexType
IndexType::IndexValueType IndexValueType
FloatType Evaluate(const PointType &point) const override
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.