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 > >
88 typename TImageType::PixelType > >
93 itkStaticConstMacro(ImageDimension,
unsigned int,
94 TImageType::ImageDimension);
110 itkSetMacro(Alpha,
float);
111 itkGetConstMacro(Alpha,
float);
118 itkSetMacro(Beta,
float);
119 itkGetConstMacro(Beta,
float);
122 #ifndef 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 ITK_OVERRIDE;
177 void BeforeThreadedGenerateData() ITK_OVERRIDE;
188 bool m_UseLookupTable;
193 #ifndef ITK_MANUAL_INSTANTIATION
194 #include "itkAdaptiveHistogramEqualizationImageFilter.hxx"
virtual ~AdaptiveHistogramEqualizationImageFilter() override
AdaptiveHistogramEqualizationImageFilter()
Implements a generic moving histogram algorithm.
TInputImage::PixelType InputPixelType
Base class for all process objects that output image data.
ImageType::PixelType InputPixelType
static ITK_CONSTEXPR_FUNC T max(const T &)
MovingHistogramImageFilter< TImageType, TImageType, TKernel, typename Function::AdaptiveEqualizationHistogram< typename TImageType::PixelType, typename TImageType::PixelType > > Superclass
virtual void SetUseLookupTable(const bool _arg)
AdaptiveHistogramEqualizationImageFilter Self
virtual void ConfigureHistogram(typename Superclass::HistogramType &h) override
static ITK_CONSTEXPR_FUNC T min(const T &)
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.
ImageType::SizeType ImageSizeType
SmartPointer< Self > Pointer
ImageBaseType::SizeType SizeType
SmartPointer< const Self > ConstPointer