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

itkAdaptiveHistogramEqualizationImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkAdaptiveHistogramEqualizationImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-04-25 12:27:02 $
00007   Version:   $Revision: 1.23 $
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 __itkAdaptiveHistogramEqualizationImageFilter_h
00018 #define __itkAdaptiveHistogramEqualizationImageFilter_h
00019 
00020 
00021 // First make sure that the configuration is available.
00022 // This line can be removed once the optimized versions
00023 // gets integrated into the main directories.
00024 #include "itkConfigure.h"
00025 
00026 #ifdef ITK_USE_CONSOLIDATED_MORPHOLOGY
00027 #include "itkOptAdaptiveHistogramEqualizationImageFilter.h"
00028 #else
00029 
00030 
00031 #include <itkImageToImageFilter.h>
00032 #include <itkImage.h>
00033 
00034 namespace itk
00035 {
00069 template <class TImageType>
00070 class ITK_EXPORT AdaptiveHistogramEqualizationImageFilter :
00071     public ImageToImageFilter< TImageType, TImageType >
00072 {
00073 public:
00075   typedef AdaptiveHistogramEqualizationImageFilter     Self;
00076   typedef ImageToImageFilter< TImageType, TImageType > Superclass;
00077   typedef SmartPointer<Self>                           Pointer;
00078   typedef SmartPointer<const Self>                     ConstPointer;
00079 
00080   itkStaticConstMacro(ImageDimension, unsigned int,
00081                       TImageType::ImageDimension );
00082 
00084   itkNewMacro(Self);
00085 
00087   itkTypeMacro(AdaptiveHistogramEqualizationImageFilter, ImageToImageFilter);
00088 
00090   typedef TImageType                   ImageType;
00091   typedef typename ImageType::SizeType ImageSizeType;
00092 
00096   itkSetMacro(Alpha, float);
00097   itkGetConstMacro(Alpha, float);
00099 
00104   itkSetMacro(Beta, float);
00105   itkGetConstMacro(Beta, float);
00107 
00111   itkSetMacro(Radius, ImageSizeType);
00112   itkGetConstReferenceMacro(Radius, ImageSizeType);
00114 
00117   itkSetMacro(UseLookupTable, bool);
00118   itkGetConstMacro(UseLookupTable, bool);
00119   itkBooleanMacro(UseLookupTable);
00121 
00122 protected:
00123   AdaptiveHistogramEqualizationImageFilter()
00124     {
00125     m_Alpha = .3;
00126     m_Beta = .3;
00127     m_Radius.Fill( 5 );
00128     m_UseLookupTable = false;
00129     }
00130   virtual ~AdaptiveHistogramEqualizationImageFilter(){}
00131   void PrintSelf(std::ostream& os, Indent indent) const;
00132 
00134   void GenerateData();
00135 
00140   void GenerateInputRequestedRegion();
00141 
00142 private:
00143   AdaptiveHistogramEqualizationImageFilter(const Self&); //purposely not implemented
00144   void operator=(const Self&); //purposely not implemented
00145 
00147   float m_Alpha;
00148 
00150   float m_Beta;
00151 
00154   ImageSizeType m_Radius;
00155 
00158   bool m_UseLookupTable;
00159 
00161   float CumulativeFunction(float u, float v);
00162 
00163 };
00164 
00165 } // end namespace itk
00166 
00167 #ifndef ITK_MANUAL_INSTANTIATION
00168 #include "itkAdaptiveHistogramEqualizationImageFilter.txx"
00169 #endif
00170 
00171 #endif
00172 
00173 #endif
00174 

Generated at Mon Jul 12 2010 17:41:48 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000