21 #ifndef otbUnaryFunctorNeighborhoodImageFilter_h
22 #define otbUnaryFunctorNeighborhoodImageFilter_h
24 #include "itkImageToImageFilter.h"
25 #include "itkImageRegionIteratorWithIndex.h"
26 #include "itkConstNeighborhoodIterator.h"
27 #include "itkProcessObject.h"
42 template <
class TInputImage,
class TOutputImage,
class TFunction>
48 typedef itk::ImageToImageFilter<TInputImage, TOutputImage>
Superclass;
80 m_Radius.Fill(radius);
117 typedef typename NeighborhoodIteratorType::RadiusType
RadiusType;
143 void DynamicThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread)
override;
148 void GenerateInputRequestedRegion(
void)
override;
160 #ifndef OTB_MANUAL_INSTANTIATION
Implements neighborhood-wise generic operation on image.
InputImageType::ConstPointer InputImagePointer
void operator=(const Self &)=delete
unsigned char RadiusSizeType
OutputImageType::Pointer OutputImagePointer
UnaryFunctorNeighborhoodImageFilter Self
itk::ConstNeighborhoodIterator< TInputImage > NeighborhoodIteratorType
FunctorType & GetFunctor()
OutputImageType::RegionType OutputImageRegionType
InputImageType::PixelType InputImagePixelType
Superclass::OutputImageType OutputImageType
InputImageSizeType m_Radius
NeighborhoodIteratorType::RadiusType RadiusType
itk::SmartPointer< const Self > ConstPointer
InputImageType::RegionType InputImageRegionType
~UnaryFunctorNeighborhoodImageFilter() override
void SetRadius(unsigned int radius)
UnaryFunctorNeighborhoodImageFilter(const Self &)=delete
void SetFunctor(const FunctorType &functor)
InputImageType::SizeType InputImageSizeType
OutputImageType::PixelType OutputImagePixelType
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
Superclass::InputImageType InputImageType
const FunctorType & GetFunctor() const
itk::ProcessObject ProcessObjectType
itk::SmartPointer< Self > Pointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.