ITK  4.2.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);
112 protected:
114  {
115  m_Alpha = .3;
116  m_Beta = .3;
117  this->SetRadius(5);
118  m_UseLookupTable = false;
119  }
121 
123  void PrintSelf(std::ostream & os, Indent indent) const;
124 
128  void GenerateData();
129 
130 private:
131  AdaptiveHistogramEqualizationImageFilter(const Self &); //purposely not
132  // implemented
133  void operator=(const Self &); //purposely not
134 
135  // implemented
136 
138  float m_Alpha;
139 
141  float m_Beta;
142 
146 
148  float CumulativeFunction(float u, float v);
149 };
150 } // end namespace itk
152 
153 #ifndef ITK_MANUAL_INSTANTIATION
154 #include "itkAdaptiveHistogramEqualizationImageFilter.hxx"
155 #endif
156 
157 #endif
158