00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkGetAverageSliceImageFilter_h
00018 #define __itkGetAverageSliceImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021
00022 namespace itk
00023 {
00024
00033 template <class TInputImage, class TOutputImage>
00034 class ITK_EXPORT GetAverageSliceImageFilter : public ImageToImageFilter<TInputImage,TOutputImage>
00035 {
00036 public:
00038 typedef GetAverageSliceImageFilter Self;
00039 typedef ImageToImageFilter<TInputImage,TOutputImage> Superclass;
00040 typedef SmartPointer<Self> Pointer;
00041 typedef SmartPointer<const Self> ConstPointer;
00042
00044 itkNewMacro(Self);
00045
00047 itkTypeMacro(GetAverageSliceImageFilter, ImageToImageFilter);
00048
00050 typedef TInputImage InputImageType;
00051 typedef typename InputImageType::Pointer InputImagePointer;
00052 typedef typename InputImageType::RegionType InputImageRegionType;
00053 typedef typename InputImageType::PixelType InputImagePixelType;
00054 typedef TOutputImage OutputImageType;
00055 typedef typename OutputImageType::Pointer OutputImagePointer;
00056 typedef typename OutputImageType::RegionType OutputImageRegionType;
00057 typedef typename OutputImageType::PixelType OutputImagePixelType;
00058
00060 itkGetMacro( Direction, unsigned int );
00061 itkSetMacro( Direction, unsigned int );
00062
00064 itkStaticConstMacro(InputImageDimension, unsigned int,
00065 TInputImage::ImageDimension);
00066 itkStaticConstMacro(OutputImageDimension, unsigned int,
00067 TOutputImage::ImageDimension);
00068
00069 void SetAveragedOutDimension(int AOD) {m_AveragedOutDimension=AOD;};
00070 protected:
00071 GetAverageSliceImageFilter();
00072 virtual ~GetAverageSliceImageFilter() {};
00073 void PrintSelf(std::ostream& os, Indent indent) const;
00078 void GenerateData(void);
00079
00080 private:
00081 GetAverageSliceImageFilter(const Self&);
00082 void operator=(const Self&);
00083
00084 unsigned int m_Direction;
00085
00086 unsigned int m_AveragedOutDimension;
00087
00088 };
00089
00090 }
00091
00092 #ifndef ITK_MANUAL_INSTANTIATION
00093 #include "itkGetAverageSliceImageFilter.txx"
00094 #endif
00095
00096 #endif
00097
00098