21 #ifndef otbUnaryFunctorNeighborhoodWithOffsetImageFilter_h
22 #define otbUnaryFunctorNeighborhoodWithOffsetImageFilter_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;
81 m_Radius.Fill(radius);
88 this->GetFunctor().SetOffset(off);
128 typedef typename NeighborhoodIteratorType::RadiusType
RadiusType;
144 void BeforeThreadedGenerateData()
override;
156 void ThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId)
override;
161 void GenerateInputRequestedRegion(
void)
override;
177 #ifndef OTB_MANUAL_INSTANTIATION
Implements neighborhood-wise generic operation on image.
NeighborhoodIteratorType::RadiusType RadiusType
itk::SmartPointer< const Self > ConstPointer
Superclass::OutputImageType OutputImageType
OutputImageType::Pointer OutputImagePointer
std::vector< FunctorType > m_FunctorList
virtual void SetOffset(InputImageOffsetType off)
void operator=(const Self &)=delete
InputImageType::SizeType InputImageSizeType
itk::ProcessObject ProcessObjectType
InputImageSizeType m_Radius
itk::ImageToImageFilter< TInputImage, TOutputImage > Superclass
itk::ConstNeighborhoodIterator< TInputImage > NeighborhoodIteratorType
UnaryFunctorNeighborhoodWithOffsetImageFilter Self
unsigned char RadiusSizeType
OutputImageType::RegionType OutputImageRegionType
InputImageType::RegionType InputImageRegionType
InputImageType::PixelType InputImagePixelType
FunctorType & GetFunctor()
InputImageOffsetType m_Offset
itk::SmartPointer< Self > Pointer
Superclass::InputImageType InputImageType
OutputImageType::PixelType OutputImagePixelType
void SetFunctor(const FunctorType &functor)
InputImageType::OffsetType InputImageOffsetType
const FunctorType & GetFunctor() const
~UnaryFunctorNeighborhoodWithOffsetImageFilter() override
InputImageType::ConstPointer InputImagePointer
void SetRadius(unsigned int radius)
UnaryFunctorNeighborhoodWithOffsetImageFilter(const Self &)=delete
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.