21 #ifndef otbHaralickTexturesImageFunction_h
22 #define otbHaralickTexturesImageFunction_h
25 #include "itkImageToImageFilter.h"
26 #include "itkImageFunction.h"
27 #include "itkFixedArray.h"
94 template <
class TInputImage,
class TCoordRep =
double>
96 :
public itk::ImageFunction<TInputImage, itk::FixedArray<typename itk::NumericTraits<typename TInputImage::PixelType>::RealType, 8>, TCoordRep>
101 typedef itk::ImageFunction<TInputImage, itk::FixedArray<typename itk::NumericTraits<typename TInputImage::PixelType>::RealType, 8>, TCoordRep>
Superclass;
120 typedef typename InputRegionType::SizeType
SizeType;
140 itkStaticConstMacro(ImageDimension,
unsigned int, InputImageType::ImageDimension);
149 this->ConvertPointToNearestIndex(point, index);
150 return this->EvaluateAtIndex(index);
155 this->ConvertContinuousIndexToNearestIndex(cindex, index);
156 return this->EvaluateAtIndex(index);
164 itkSetMacro(NeighborhoodRadius,
unsigned int);
170 itkGetConstReferenceMacro(NeighborhoodRadius,
unsigned int);
179 itkSetMacro(NumberOfBinsPerAxis,
unsigned int);
182 itkGetMacro(NumberOfBinsPerAxis,
unsigned int);
201 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
231 #ifndef OTB_MANUAL_INSTANTIATION
This class holds a VectorType of CooccurrencePairType with each pair is a combination of pixel index ...
itk::SmartPointer< const Self > ConstPointer
itk::SmartPointer< Self > Pointer
itk::NumericTraits< FrequencyType >::RealType RelativeFrequencyType
itk::Index< PixelPairSize > IndexType
std::vector< CooccurrencePairType > VectorType
itk::NumericTraits< PixelType >::RealType PixelValueType
Compute the 8 Haralick texture indices on the neighborhood of the point.
HaralickTexturesImageFunction(const Self &)=delete
CooccurrenceIndexedListType::RelativeFrequencyType RelativeFrequencyType
InputPixelType m_InputImageMaximum
InputImageType::PixelType InputPixelType
VectorType::iterator VectorIteratorType
Superclass::IndexType IndexType
OutputType EvaluateAtContinuousIndex(const ContinuousIndexType &cindex) const override
CooccurrenceIndexedListType::IndexType CooccurrenceIndexType
OutputType Evaluate(const PointType &point) const override
InputPixelType m_InputImageMinimum
GreyLevelCooccurrenceIndexedList< InputPixelType > CooccurrenceIndexedListType
void operator=(const Self &)=delete
InputImageType::OffsetType OffsetType
itk::SmartPointer< Self > Pointer
InputRegionType::SizeType SizeType
double GetPixelValueTolerance() const
InputImageType::Pointer InputImagePointerType
CooccurrenceIndexedListType::Pointer CooccurrenceIndexedListPointerType
CooccurrenceIndexedListType::ConstPointer CooccurrenceIndexedListConstPointerType
itk::ImageFunction< TInputImage, itk::FixedArray< typename itk::NumericTraits< typename TInputImage::PixelType >::RealType, 8 >, TCoordRep > Superclass
unsigned int m_NumberOfBinsPerAxis
unsigned int m_NeighborhoodRadius
~HaralickTexturesImageFunction() override
CooccurrenceIndexedListType::VectorType VectorType
Superclass::PointType PointType
itk::SmartPointer< const Self > ConstPointer
VectorType::const_iterator VectorConstIteratorType
InputImageType::RegionType InputRegionType
Superclass::OutputType OutputType
Superclass::ContinuousIndexType ContinuousIndexType
OutputType::ValueType ScalarRealType
HaralickTexturesImageFunction Self
TInputImage InputImageType
CooccurrenceIndexedListType::PixelValueType PixelValueType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.