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);
118 return funct.GetName();
127 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
139 #ifndef OTB_MANUAL_INSTANTIATION
Calculate a texture over an image.
RealType Evaluate(const PointType &point) const override
Superclass::OutputType OutputType
Superclass::PointType PointType
void operator=(const Self &)=delete
void SetOffset(OffsetType &off)
itk::SmartPointer< Self > Pointer
itk::ConstNeighborhoodIterator< InputImageType > IteratorType
Superclass::ContinuousIndexType ContinuousIndexType
itk::SmartPointer< const Self > ConstPointer
TInputImage InputImageType
IteratorType::NeighborhoodType NeighborhoodType
itk::ImageFunction< TInputImage, typename itk::NumericTraits< typename TInputImage::PixelType >::RealType, TCoordRep > Superclass
TextureImageFunction Self
virtual std::string GetName() const
TextureImageFunction(const Self &)=delete
InputImageType::PixelType PixelType
void SetRadius(SizeType &rad)
itk::NumericTraits< typename InputImageType::PixelType >::RealType RealType
~TextureImageFunction() override
InputImageType::OffsetType OffsetType
InputImageType::SizeType SizeType
RealType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
Superclass::IndexType IndexType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.