00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkGetAverageSliceImageFilter.h,v $ 00005 Language: C++ 00006 Date: $Date: 2007-10-05 10:30:47 $ 00007 Version: $Revision: 1.6 $ 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 __itkGetAverageSliceImageFilter_h 00018 #define __itkGetAverageSliceImageFilter_h 00019 00020 #include "itkAccumulateImageFilter.h" 00021 00022 namespace itk 00023 { 00024 00046 template <class TInputImage, class TOutputImage> 00047 class ITK_EXPORT GetAverageSliceImageFilter : public AccumulateImageFilter<TInputImage,TOutputImage> 00048 { 00049 public: 00051 typedef GetAverageSliceImageFilter Self; 00052 typedef AccumulateImageFilter<TInputImage,TOutputImage> Superclass; 00053 typedef SmartPointer<Self> Pointer; 00054 typedef SmartPointer<const Self> ConstPointer; 00055 00057 itkNewMacro(Self); 00058 00060 itkTypeMacro(GetAverageSliceImageFilter, AccumulateImageFilter); 00061 00063 itkGetMacro( AveragedOutDimension, unsigned int ); 00064 itkSetMacro( AveragedOutDimension, unsigned int ); 00066 00067 protected: 00068 GetAverageSliceImageFilter(); 00069 virtual ~GetAverageSliceImageFilter() {}; 00070 void PrintSelf(std::ostream& os, Indent indent) const; 00071 00072 private: 00073 GetAverageSliceImageFilter(const Self&); //purposely not implemented 00074 void operator=(const Self&); //purposely not implemented 00075 00076 unsigned int m_AveragedOutDimension; 00077 00078 }; 00079 00080 } // end namespace itk 00081 00082 #ifndef ITK_MANUAL_INSTANTIATION 00083 #include "itkGetAverageSliceImageFilter.txx" 00084 #endif 00085 00086 #endif 00087 00088 00089