00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkNormalizeImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:28:54 $ 00007 Version: $Revision: 1.7 $ 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 __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 } ; // end of class 00077 00078 } // end namespace itk 00079 00080 #ifndef ITK_MANUAL_INSTANTIATION 00081 #include "itkNormalizeImageFilter.txx" 00082 #endif 00083 00084 #endif