22 #ifndef otbFunctionToImageFilter_h
23 #define otbFunctionToImageFilter_h
25 #include "itkInPlaceImageFilter.h"
26 #include "itkImageFunction.h"
27 #include "itkImageRegionIterator.h"
29 #include "itkSpatialFunction.h"
54 template <
class TInputImage,
class TOutputImage,
class TFunction>
60 typedef itk::InPlaceImageFilter<TInputImage, TOutputImage>
Superclass;
91 m_PixelFunction = PixelFunction;
96 return m_PixelFunction;
100 return m_PixelFunction;
106 itkStaticConstMacro(InputImageDimension,
unsigned int, TInputImage::ImageDimension);
107 itkStaticConstMacro(OutputImageDimension,
unsigned int, TOutputImage::ImageDimension);
118 void BeforeThreadedGenerateData()
override;
130 void ThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId)
override;
134 void operator=(
const Self&) =
delete;
142 #ifndef OTB_MANUAL_INSTANTIATION