21 #ifndef otbUnaryFunctorWithIndexWithOutputSizeImageFilter_h
22 #define otbUnaryFunctorWithIndexWithOutputSizeImageFilter_h
24 #include "itkImageToImageFilter.h"
25 #include "itkImageRegionConstIteratorWithIndex.h"
26 #include "itkProcessObject.h"
41 template <
class TInputImage,
class TOutputImage,
class TFunction>
47 typedef itk::ImageToImageFilter<TInputImage, TOutputImage>
Superclass;
105 typedef itk::ImageRegionConstIteratorWithIndex<TInputImage>
IteratorType;
130 void ThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId)
override;
135 void GenerateInputRequestedRegion(
void)
override;
147 Superclass::GenerateOutputInformation();
148 typename Superclass::OutputImagePointer outputPtr = this->GetOutput();
149 outputPtr->SetNumberOfComponentsPerPixel(
150 this->GetFunctor().GetOutputSize());
156 void operator=(
const Self&) =
delete;
163 #ifndef OTB_MANUAL_INSTANTIATION