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);
120 m_Function->SetOffset(offset);
131 void BeforeThreadedGenerateData()
override;
133 void GenerateInputRequestedRegion()
override;
145 void ThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId)
override;
160 #ifndef OTB_MANUAL_INSTANTIATION
Evaluates a ImageFunction onto a source image.
OutputImageType::PixelType OutputImagePixelType
OutputImageType::Pointer OutputImagePointer
InputImageSizeType m_Radius
InputImageType::ConstPointer InputImageConstPointer
void SetOffset(InputImageOffsetType &offset)
itk::InPlaceImageFilter< TInputImage, TOutputImage > Superclass
TInputImage InputImageType
FunctionPointerType m_Function
FunctionType::InputType FunctionPositionType
FunctionPointerType GetFunction()
InputImageType::RegionType InputImageRegionType
void SetFunction(FunctionPointerType function)
InputImageType::OffsetType InputImageOffsetType
FunctionWithNeighborhoodToImageFilter(const Self &)=delete
~FunctionWithNeighborhoodToImageFilter() override
OutputImageType::RegionType OutputImageRegionType
itk::SmartPointer< const Self > ConstPointer
FunctionWithNeighborhoodToImageFilter Self
InputImageType::Pointer InputImagePointer
FunctionType::OutputType FunctionValueType
InputImageType::SizeType InputImageSizeType
void SetRadius(InputImageSizeType &rad)
itk::SmartPointer< Self > Pointer
TOutputImage OutputImageType
InputImageOffsetType m_Offset
std::vector< FunctionPointerType > m_FunctionList
InputImageType::PixelType InputImagePixelType
FunctionType::Pointer FunctionPointerType
void operator=(const Self &)=delete
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.