21 #ifndef otbCLHistogramEqualizationFilter_hxx
22 #define otbCLHistogramEqualizationFilter_hxx
25 #include "itkImageRegionIterator.h"
31 template <
class TInputImage,
class TOutputImage>
52 template <
class TInputImage,
class TOutputImage>
56 m_HistoFilter->SetInput(input);
57 m_BufferFilter->SetInput(input);
58 m_ApplyGainFilter->GetOutput()->UpdateOutputInformation();
59 this->GetOutput()->CopyInformation(m_ApplyGainFilter->GetOutput());
62 template <
class TInputImage,
class TOutputImage>
65 m_ApplyGainFilter->GetOutput()->SetRequestedRegion(
static_cast<OutputImageType*
>(output)->GetRequestedRegion());
66 m_ApplyGainFilter->GetOutput()->PropagateRequestedRegion();
69 template <
class TInputImage,
class TOutputImage>
72 m_ApplyGainFilter->GraftOutput(this->GetOutput());
73 m_ApplyGainFilter->Update();
74 this->GraftOutput(m_ApplyGainFilter->GetOutput());
80 template <
class TInputImage,
class TOutputImage>
83 Superclass::PrintSelf(os, indent);
84 os << indent <<
"Minimum : " << m_Min << std::endl;
85 os << indent <<
"Maximum : " << m_Max << std::endl;
86 os << indent <<
"Bin Number : " << m_NbBin << std::endl;
87 os << indent <<
"Thumbnail size : " << m_ThumbSize << std::endl;
88 os << indent <<
"Threshold value : " << m_Threshold << std::endl;
89 os << indent <<
"Is no data activated : " << m_NoDataFlag << std::endl;
90 os << indent <<
"No Data : " << m_NoData << std::endl;
Apply gain on the input image with a bilineare interpolation.
itk::StreamingImageFilter< LutType, LutType > StreamingImageFilter
GainLutFilter::Pointer m_GainLutFilter
HistoFilter::Pointer m_HistoFilter
BufferFilter::Pointer m_BufferFilter
void PrintSelf(std::ostream &os, itk::Indent indent) const override
InputImageType::SizeType m_ThumbSize
void GenerateData() override
CLHistogramEqualizationFilter()
void UpdateOutputInformation() override
ApplyGainFilter::Pointer m_ApplyGainFilter
StreamingImageFilter::Pointer m_StreamingImageFilter
TInputImage InputImageType
InputImageType::PixelType InputPixelType
void PropagateRequestedRegion(itk::DataObject *output) override
TOutputImage OutputImageType
Compute the gain for each pixel value from a histogram.
Compute local histogram with several parameters.
This filter has the only purpose to recall regions.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.