22 #ifndef otbFunctionWithNeighborhoodToImageFilter_h
23 #define otbFunctionWithNeighborhoodToImageFilter_h
50 template <
class TInputImage,
class TOutputImage,
class TFunction>
56 typedef itk::InPlaceImageFilter<TInputImage, TOutputImage>
Superclass;
92 m_Function =
function;
103 itkStaticConstMacro(InputImageDimension,
unsigned int, TInputImage::ImageDimension);
104 itkStaticConstMacro(OutputImageDimension,
unsigned int, TOutputImage::ImageDimension);
113 m_Function->SetRadius(rad);
116 itkGetMacro(Offset, InputImageOffsetType);
120 m_Function->SetOffset(offset);
131 void BeforeThreadedGenerateData()
override;
133 void GenerateInputRequestedRegion()
override;
145 void ThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId)
override;
149 void operator=(
const Self&) =
delete;
160 #ifndef OTB_MANUAL_INSTANTIATION