Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkOptAdaptiveHistogramEqualizationImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkOptAdaptiveHistogramEqualizationImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-04-23 03:43:42 $
00007   Version:   $Revision: 1.4 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkOptAdaptiveHistogramEqualizationImageFilter_h
00018 #define __itkOptAdaptiveHistogramEqualizationImageFilter_h
00019 
00020 
00021 #include <itkBoxImageFilter.h>
00022 #include <itkImage.h>
00023 
00024 namespace itk
00025 {
00060 template <class TImageType>
00061 class ITK_EXPORT AdaptiveHistogramEqualizationImageFilter :
00062     public BoxImageFilter< TImageType, TImageType >
00063 {
00064 public:
00065 
00069   typedef AdaptiveHistogramEqualizationImageFilter     Self;
00070   typedef ImageToImageFilter< TImageType, TImageType > Superclass;
00071   typedef SmartPointer<Self>                           Pointer;
00072   typedef SmartPointer<const Self>                     ConstPointer;
00073 
00074   itkStaticConstMacro(ImageDimension, unsigned int,
00075                       TImageType::ImageDimension );
00076 
00078   itkNewMacro(Self);
00079 
00081   itkTypeMacro(AdaptiveHistogramEqualizationImageFilter, ImageToImageFilter);
00082 
00084   typedef TImageType                   ImageType;
00085   typedef typename ImageType::SizeType ImageSizeType;
00086 
00090   itkSetMacro(Alpha, float);
00091   itkGetConstMacro(Alpha, float);
00093 
00098   itkSetMacro(Beta, float);
00099   itkGetConstMacro(Beta, float);
00101 
00104   itkSetMacro(UseLookupTable, bool);
00105   itkGetConstMacro(UseLookupTable, bool);
00106   itkBooleanMacro(UseLookupTable);
00108 
00109 protected:
00110   AdaptiveHistogramEqualizationImageFilter()
00111     {
00112     m_Alpha = .3;
00113     m_Beta = .3;
00114     this->SetRadius( 5 );
00115     m_UseLookupTable = false;
00116     }
00117   virtual ~AdaptiveHistogramEqualizationImageFilter(){}
00118   void PrintSelf(std::ostream& os, Indent indent) const;
00119 
00123   void GenerateData();
00124 
00125 private:
00126   AdaptiveHistogramEqualizationImageFilter(const Self&); //purposely not implemented
00127   void operator=(const Self&); //purposely not implemented
00128 
00130   float m_Alpha;
00131 
00133   float m_Beta;
00134 
00137   bool m_UseLookupTable;
00138 
00140   float CumulativeFunction(float u, float v);
00141 
00142 };
00143 
00144 } // end namespace itk
00145 
00146 #ifndef ITK_MANUAL_INSTANTIATION
00147 #include "itkOptAdaptiveHistogramEqualizationImageFilter.txx"
00148 #endif
00149 
00150 #endif
00151 

Generated at Thu May 28 11:02:18 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000