Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkAccumulateImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkAccumulateImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-04-25 12:27:00 $
00007   Version:   $Revision: 1.11 $
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 __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&); //purposely not implemented
00138   void operator=(const Self&); //purposely not implemented
00139 
00140   unsigned int m_AccumulateDimension;
00141   bool         m_Average;
00142 
00143 };
00144 
00145 } // end namespace itk
00146 
00147 #ifndef ITK_MANUAL_INSTANTIATION
00148 #include "itkAccumulateImageFilter.txx"
00149 #endif
00150 
00151 #endif
00152 

Generated at Tue Sep 15 02:06:27 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000