21 #ifndef otbTextureImageFunction_hxx
22 #define otbTextureImageFunction_hxx
32 template <
class TInputImage,
class TFunctor,
class TCoordRep>
43 template <
class TInputImage,
class TFunctor,
class TCoordRep>
46 this->Superclass::PrintSelf(os, indent);
47 os << indent <<
"Radius: " << m_Radius << std::endl;
48 os << indent <<
"Offset: " << m_Offset << std::endl;
55 template <
class TInputImage,
class TFunctor,
class TCoordRep>
59 if (!this->GetInputImage())
61 return (itk::NumericTraits<RealType>::max());
64 if (!this->IsInsideBuffer(index))
66 return (itk::NumericTraits<RealType>::max());
70 radiusOff[0] = (m_Radius[0]) + std::abs(m_Offset[0]);
71 radiusOff[1] = (m_Radius[1]) + std::abs(m_Offset[1]);
72 IteratorType itOff(radiusOff, this->GetInputImage(), this->GetInputImage()->GetBufferedRegion());
73 itOff.SetLocation(index);
76 funct.SetOffset(m_Offset);
78 return static_cast<RealType>(funct(itOff.GetNeighborhood()));
itk::ConstNeighborhoodIterator< InputImageType > IteratorType
void PrintSelf(std::ostream &os, itk::Indent indent) const override
itk::NumericTraits< typename InputImageType::PixelType >::RealType RealType
InputImageType::SizeType SizeType
RealType EvaluateAtIndex(const IndexType &index) const override
Superclass::IndexType IndexType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.