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

itkNormalizeImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkNormalizeImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/03/12 16:50:41 $
00007   Version:   $Revision: 1.4 $
00008 
00009   Copyright (c) 2002 Insight 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 __itkNormalizeImageFilter_h
00018 #define __itkNormalizeImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 #include "itkStatisticsImageFilter.h"
00022 #include "itkShiftScaleImageFilter.h"
00023 
00024 #include "itkEventObject.h"
00025 
00026 namespace itk {
00027 
00040 template<class TInputImage,class TOutputImage>
00041 class ITK_EXPORT NormalizeImageFilter : 
00042   public ImageToImageFilter<TInputImage, TOutputImage>
00043 {
00044 public:
00046   typedef NormalizeImageFilter Self;
00047   typedef ImageToImageFilter<TInputImage,TOutputImage>  Superclass;
00048   typedef SmartPointer<Self>        Pointer;
00049   typedef SmartPointer<const Self>  ConstPointer;
00050   
00052   itkNewMacro(Self);  
00053 
00055   itkTypeMacro(NormalizeImageFilter, ImageToImageFilter);
00056   
00058   typedef typename TInputImage::Pointer InputImagePointer;
00059   typedef typename TOutputImage::Pointer OutputImagePointer;
00060 
00061 protected:
00062   NormalizeImageFilter();
00063 
00065   void  GenerateData ();
00066 
00067   // Override since the filter needs all the data for the algorithm
00068   void GenerateInputRequestedRegion();
00069 
00070  private:
00071   NormalizeImageFilter(const Self&); //purposely not implemented
00072   void operator=(const Self&); //purposely not implemented
00073 
00074   typename StatisticsImageFilter<TInputImage>::Pointer m_StatisticsFilter;
00075   typename ShiftScaleImageFilter<TInputImage,TOutputImage>::Pointer m_ShiftScaleFilter;
00076   bool m_ProgressDone;
00077 
00078   void SetupProgressMethods(ProcessObject *statistic, ProcessObject *shiftScale);
00079   static void StatisticsCallBack (Object *o, const EventObject &e, void *self);
00080   static void ShiftScaleCallBack (Object *o, const EventObject &e, void *self);
00081 } ; // end of class
00082 
00083 } // end namespace itk
00084   
00085 #ifndef ITK_MANUAL_INSTANTIATION
00086 #include "itkNormalizeImageFilter.txx"
00087 #endif
00088 
00089 #endif

Generated at Wed Mar 12 01:13:08 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000