18 #ifndef itkAdaptiveHistogramEqualizationImageFilter_h
19 #define itkAdaptiveHistogramEqualizationImageFilter_h
70 template<
typename TImageType ,
typename TKernel = Neighborhood<
bool, TImageType::ImageDimension> >
75 typename Function::AdaptiveEqualizationHistogram< typename TImageType::PixelType,
76 typename TImageType::PixelType > >
90 typename TImageType::PixelType > >;
94 static constexpr
unsigned int ImageDimension = TImageType::ImageDimension;
110 itkSetMacro(Alpha,
float);
111 itkGetConstMacro(Alpha,
float);
118 itkSetMacro(Beta,
float);
119 itkGetConstMacro(Beta,
float);
122 #if ! defined ( ITK_FUTURE_LEGACY_REMOVE )
129 itkDebugMacro(
"setting UseLookupTable to " << _arg );
130 itkGenericLegacyReplaceBodyMacro(
"UseLookupTable",
"",
"nothing" );
131 if (this->m_UseLookupTable != _arg)
133 this->m_UseLookupTable = _arg;
137 itkGetConstMacro(UseLookupTable,
bool);
138 itkBooleanMacro(UseLookupTable);
144 h.SetAlpha( this->m_Alpha );
145 h.SetBeta( this->m_Beta );
146 h.SetMinimum( this->m_InputMinimum );
147 h.SetMaximum( this->m_InputMaximum );
149 typename Superclass::HistogramType::RealType kernelSize = 1;
150 for (
unsigned int i = 0; i < ImageDimension; i++ )
152 kernelSize *= ( 2 * this->GetRadius()[i] + 1 );
154 h.SetKernelSize(kernelSize);
168 m_UseLookupTable =
false;
172 void PrintSelf(std::ostream & os,
Indent indent)
const override;
177 void BeforeThreadedGenerateData()
override;
191 #ifndef ITK_MANUAL_INSTANTIATION
192 #include "itkAdaptiveHistogramEqualizationImageFilter.hxx"
Define numeric traits for std::vector.
AdaptiveHistogramEqualizationImageFilter()
Implements a generic moving histogram algorithm.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
typename ImageType::SizeType ImageSizeType
ImageBaseType::SizeType SizeType
virtual void SetUseLookupTable(const bool _arg)
void ConfigureHistogram(typename Superclass::HistogramType &h) override
typename TInputImage::PixelType InputPixelType
InputPixelType m_InputMinimum
Base class for filters that take an image as input and produce an image as output.
Power Law Adaptive Histogram Equalization.
Control indentation during Print() invocation.
InputPixelType m_InputMaximum