itkAccumulateImageFilter.h
Go to the documentation of this file.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 #include "itkConceptChecking.h"
00022
00023 namespace itk
00024 {
00025
00053 template <class TInputImage, class TOutputImage>
00054 class ITK_EXPORT AccumulateImageFilter : public ImageToImageFilter<TInputImage,TOutputImage>
00055 {
00056 public:
00058 typedef AccumulateImageFilter Self;
00059 typedef ImageToImageFilter<TInputImage,TOutputImage> Superclass;
00060 typedef SmartPointer<Self> Pointer;
00061 typedef SmartPointer<const Self> ConstPointer;
00062
00064 itkNewMacro(Self);
00065
00067 itkTypeMacro(AccumulateImageFilter, ImageToImageFilter);
00068
00070 typedef TInputImage InputImageType;
00071 typedef typename InputImageType::Pointer InputImagePointer;
00072 typedef typename InputImageType::RegionType InputImageRegionType;
00073 typedef typename InputImageType::PixelType InputImagePixelType;
00074
00075 typedef TOutputImage OutputImageType;
00076 typedef typename OutputImageType::Pointer OutputImagePointer;
00077 typedef typename OutputImageType::RegionType OutputImageRegionType;
00078 typedef typename OutputImageType::PixelType OutputImagePixelType;
00079
00080
00082 itkStaticConstMacro(InputImageDimension, unsigned int,
00083 TInputImage::ImageDimension);
00084 itkStaticConstMacro(OutputImageDimension, unsigned int,
00085 TOutputImage::ImageDimension);
00087
00090 #ifdef ITK_USE_CONCEPT_CHECKING
00091
00093 itkConceptMacro(ImageDimensionCheck,
00094 (Concept::SameDimensionOrMinusOne<itkGetStaticConstMacro(InputImageDimension),
00095 itkGetStaticConstMacro(OutputImageDimension)>));
00096
00098 #endif
00099
00103 itkGetConstMacro( AccumulateDimension, unsigned int );
00104 itkSetMacro( AccumulateDimension, unsigned int );
00106
00112 itkSetMacro( Average, bool );
00113 itkGetConstMacro( Average, bool );
00114 itkBooleanMacro(Average);
00116
00117
00118
00119 protected:
00120 AccumulateImageFilter();
00121 virtual ~AccumulateImageFilter() {};
00122 void PrintSelf(std::ostream& os, Indent indent) const;
00123
00125 virtual void GenerateOutputInformation();
00126
00128 virtual void GenerateInputRequestedRegion();
00129
00134 void GenerateData(void);
00135
00136 private:
00137 AccumulateImageFilter(const Self&);
00138 void operator=(const Self&);
00139
00140 unsigned int m_AccumulateDimension;
00141 bool m_Average;
00142
00143 };
00144
00145 }
00146
00147 #ifndef ITK_MANUAL_INSTANTIATION
00148 #include "itkAccumulateImageFilter.txx"
00149 #endif
00150
00151 #endif
00152