ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef __itkNormalizeImageFilter_h 00019 #define __itkNormalizeImageFilter_h 00020 00021 #include "itkStatisticsImageFilter.h" 00022 #include "itkShiftScaleImageFilter.h" 00023 00024 #include "itkEventObject.h" 00025 00026 namespace itk 00027 { 00048 template< class TInputImage, class TOutputImage > 00049 class ITK_EXPORT NormalizeImageFilter: 00050 public ImageToImageFilter< TInputImage, TOutputImage > 00051 { 00052 public: 00054 typedef NormalizeImageFilter Self; 00055 typedef ImageToImageFilter< TInputImage, TOutputImage > Superclass; 00056 typedef SmartPointer< Self > Pointer; 00057 typedef SmartPointer< const Self > ConstPointer; 00058 00060 itkNewMacro(Self); 00061 00063 itkTypeMacro(NormalizeImageFilter, ImageToImageFilter); 00064 00066 typedef typename TInputImage::Pointer InputImagePointer; 00067 typedef typename TOutputImage::Pointer OutputImagePointer; 00068 00070 virtual void Modified() const; 00071 00072 protected: 00073 NormalizeImageFilter(); 00074 00076 void GenerateData(); 00077 00078 // Override since the filter needs all the data for the algorithm 00079 void GenerateInputRequestedRegion(); 00080 00081 private: 00082 NormalizeImageFilter(const Self &); //purposely not implemented 00083 void operator=(const Self &); //purposely not implemented 00084 00085 typename StatisticsImageFilter< TInputImage >::Pointer m_StatisticsFilter; 00086 00087 typename ShiftScaleImageFilter< TInputImage, TOutputImage >::Pointer m_ShiftScaleFilter; 00088 }; // end of class 00089 } // end namespace itk 00090 00091 #ifndef ITK_MANUAL_INSTANTIATION 00092 #include "itkNormalizeImageFilter.hxx" 00093 #endif 00094 00095 #endif 00096