00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __itkAccumulateImageFilter_h
00018 #define __itkAccumulateImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021
00022 namespace itk
00023 {
00024
00050 template <class TInputImage, class TOutputImage>
00051 class ITK_EXPORT AccumulateImageFilter : public ImageToImageFilter<TInputImage,TOutputImage>
00052 {
00053 public:
00055 typedef AccumulateImageFilter Self;
00056 typedef ImageToImageFilter<TInputImage,TOutputImage> Superclass;
00057 typedef SmartPointer<Self> Pointer;
00058 typedef SmartPointer<const Self> ConstPointer;
00059
00061 itkNewMacro(Self);
00062
00064 itkTypeMacro(AccumulateImageFilter, ImageToImageFilter);
00065
00067 typedef TInputImage InputImageType;
00068 typedef typename InputImageType::Pointer InputImagePointer;
00069 typedef typename InputImageType::RegionType InputImageRegionType;
00070 typedef typename InputImageType::PixelType InputImagePixelType;
00071 typedef TOutputImage OutputImageType;
00072 typedef typename OutputImageType::Pointer OutputImagePointer;
00073 typedef typename OutputImageType::RegionType OutputImageRegionType;
00074 typedef typename OutputImageType::PixelType OutputImagePixelType;
00075
00076
00078 itkStaticConstMacro(InputImageDimension, unsigned int,
00079 TInputImage::ImageDimension);
00080 itkStaticConstMacro(OutputImageDimension, unsigned int,
00081 TOutputImage::ImageDimension);
00082
00086 itkGetMacro( AccumulateDimension, unsigned int );
00087 itkSetMacro( AccumulateDimension, unsigned int );
00088
00094 itkSetMacro( Average, bool );
00095 itkGetMacro( Average, bool );
00096 itkBooleanMacro(Average);
00097
00098
00099
00100 protected:
00101 AccumulateImageFilter();
00102 virtual ~AccumulateImageFilter() {};
00103 void PrintSelf(std::ostream& os, Indent indent) const;
00104
00106 virtual void GenerateOutputInformation();
00107
00109 virtual void GenerateInputRequestedRegion();
00110
00115 void GenerateData(void);
00116
00117 private:
00118 AccumulateImageFilter(const Self&);
00119 void operator=(const Self&);
00120
00121 unsigned int m_AccumulateDimension;
00122 bool m_Average;
00123
00124 };
00125
00126 }
00127
00128 #ifndef ITK_MANUAL_INSTANTIATION
00129 #include "itkAccumulateImageFilter.txx"
00130 #endif
00131
00132 #endif
00133
00134