21 #ifndef otbTextureImageFunction_h
22 #define otbTextureImageFunction_h
24 #include "itkImageFunction.h"
25 #include "itkConstNeighborhoodIterator.h"
26 #include "itkVariableLengthVector.h"
43 template <
class TInputImage,
class TFunctor,
class TCoordRep =
float>
45 :
public itk::ImageFunction<TInputImage, typename itk::NumericTraits<typename TInputImage::PixelType>::RealType, TCoordRep>
51 typedef itk::ImageFunction<TInputImage, typename itk::NumericTraits<typename TInputImage::PixelType>::RealType, TCoordRep>
Superclass;
65 typedef typename InputImageType::SizeType
SizeType;
66 typedef typename InputImageType::PixelType
PixelType;
71 typedef itk::ConstNeighborhoodIterator<InputImageType>
IteratorType;
73 typedef typename itk::NumericTraits<typename InputImageType::PixelType>::RealType
RealType;
76 itkStaticConstMacro(ImageDimension,
unsigned int, InputImageType::ImageDimension);
85 this->ConvertPointToNearestIndex(point, index);
86 return this->EvaluateAtIndex(index);
91 this->ConvertContinuousIndexToNearestIndex(cindex, index);
92 return this->EvaluateAtIndex(index);
111 itkGetMacro(Radius, SizeType);
112 itkGetMacro(Offset, OffsetType);
118 return funct.GetName();
127 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
131 void operator=(
const Self&) =
delete;
139 #ifndef OTB_MANUAL_INSTANTIATION