21 #ifndef otbComputeGainLutFilter_h
22 #define otbComputeGainLutFilter_h
24 #include "itkImageToImageFilter.h"
42 template <
class TInputImage,
class TOutputImage>
52 typedef itk::ImageToImageFilter<InputImageType, OutputImageType>
Superclass;
56 typedef typename InputImageType::PixelType
HistoType;
57 typedef typename OutputImageType::PixelType
LutType;
68 itkSetMacro(NbPixel,
unsigned long);
69 itkGetMacro(NbPixel,
unsigned long);
73 itkSetMacro(Min,
double);
74 itkGetMacro(Min,
double);
78 itkSetMacro(Max,
double);
79 itkGetMacro(Max,
double);
87 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
89 void BeforeThreadedGenerateData()
override;
91 void DynamicThreadedGenerateData(
const OutputImageRegionType& outputRegionForThread)
override;
98 OutputPixelType PostProcess(
unsigned int countMapValue,
unsigned int countValue);
109 bool IsValid(
const HistoType& inputHisto);
121 #ifndef OTB_MANUAL_INSTANTIATION
Compute the gain for each pixel value from a histogram.
~ComputeGainLutFilter() override
ComputeGainLutFilter(const Self &)=delete
void operator=(const Self &)=delete
itk::SmartPointer< Self > Pointer
OutputImageType::RegionType OutputImageRegionType
OutputImageType::PixelType LutType
TInputImage InputImageType
itk::SmartPointer< const Self > ConstPointer
ComputeGainLutFilter Self
TOutputImage OutputImageType
itk::ImageToImageFilter< InputImageType, OutputImageType > Superclass
InputImageType::PixelType HistoType
OutputImageType::InternalPixelType OutputPixelType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.