21 #ifndef otbClampImageFilter_h
22 #define otbClampImageFilter_h
25 #include "itkUnaryFunctorImageFilter.h"
47 template <
class TInputImage,
class TOutputImage = TInputImage>
49 :
public itk::ImageToImageFilter<TInputImage, TOutputImage>
54 using Superclass = itk::ImageToImageFilter<TInputImage, TOutputImage>;
97 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
101 Superclass::GenerateOutputInformation();
102 unsigned int sizeIn = this->GetInput()->GetNumberOfComponentsPerPixel();
103 this->GetFunctor().SetInputComponents(sizeIn);
104 this->GetOutput()->SetNumberOfComponentsPerPixel(this->GetFunctor().GetOutputSize());
107 void ThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId)
override;
114 void operator=(
const Self&) =
delete;
124 #ifndef OTB_MANUAL_INSTANTIATION