ITK  4.4.0
Insight Segmentation and Registration Toolkit
itkAdaptiveHistogramEqualizationImageFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkAdaptiveHistogramEqualizationImageFilter_h
19 #define __itkAdaptiveHistogramEqualizationImageFilter_h
20 
21 #include "itkBoxImageFilter.h"
22 #include "itkImage.h"
23 
24 namespace itk
25 {
65 template< class TImageType >
67  public BoxImageFilter< TImageType, TImageType >
68 {
69 public:
70 
78 
79  itkStaticConstMacro(ImageDimension, unsigned int,
80  TImageType::ImageDimension);
81 
83  itkNewMacro(Self);
84 
87 
89  typedef TImageType ImageType;
90  typedef typename ImageType::SizeType ImageSizeType;
91 
95  itkSetMacro(Alpha, float);
96  itkGetConstMacro(Alpha, float);
98 
103  itkSetMacro(Beta, float);
104  itkGetConstMacro(Beta, float);
106 
109  itkSetMacro(UseLookupTable, bool);
110  itkGetConstMacro(UseLookupTable, bool);
111  itkBooleanMacro(UseLookupTable);
113 
114 protected:
116  {
117  m_Alpha = .3;
118  m_Beta = .3;
119  this->SetRadius(5);
120  m_UseLookupTable = false;
121  }
122 
124  void PrintSelf(std::ostream & os, Indent indent) const;
125 
129  void GenerateData();
130 
131 private:
132  AdaptiveHistogramEqualizationImageFilter(const Self &); //purposely not
133  // implemented
134  void operator=(const Self &); //purposely not
135 
136  // implemented
137 
139  float m_Alpha;
140 
142  float m_Beta;
143 
147 
149  float CumulativeFunction(float u, float v);
150 };
151 } // end namespace itk
153 
154 #ifndef ITK_MANUAL_INSTANTIATION
155 #include "itkAdaptiveHistogramEqualizationImageFilter.hxx"
156 #endif
157 
158 #endif
159