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);
91 itkGetMacro(Offset, InputImageOffsetType);
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;
166 void operator=(
const Self&) =
delete;
177 #ifndef OTB_MANUAL_INSTANTIATION