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: 2006/03/27 17:01:04 $
00007   Version:   $Revision: 1.8 $
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   
00051 template <class TInputImage, class TOutputImage>
00052 class ITK_EXPORT AccumulateImageFilter : public ImageToImageFilter<TInputImage,TOutputImage>
00053 {
00054 public:
00056   typedef AccumulateImageFilter  Self;
00057   typedef ImageToImageFilter<TInputImage,TOutputImage>  Superclass;
00058   typedef SmartPointer<Self>   Pointer;
00059   typedef SmartPointer<const Self>  ConstPointer;
00060 
00062   itkNewMacro(Self);
00063 
00065   itkTypeMacro(AccumulateImageFilter, ImageToImageFilter);
00066 
00068   typedef TInputImage InputImageType;
00069   typedef typename    InputImageType::Pointer    InputImagePointer;
00070   typedef typename    InputImageType::RegionType InputImageRegionType;
00071   typedef typename    InputImageType::PixelType  InputImagePixelType;
00072   typedef TOutputImage OutputImageType;
00073   typedef typename     OutputImageType::Pointer    OutputImagePointer;
00074   typedef typename     OutputImageType::RegionType OutputImageRegionType;
00075   typedef typename     OutputImageType::PixelType  OutputImagePixelType;
00076 
00077 
00079   itkStaticConstMacro(InputImageDimension, unsigned int,
00080                       TInputImage::ImageDimension);
00081   itkStaticConstMacro(OutputImageDimension, unsigned int,
00082                       TOutputImage::ImageDimension);
00084 
00087 #ifdef ITK_USE_CONCEPT_CHECKING
00088 
00090   itkConceptMacro(ImageDimensionCheck,
00091       (Concept::SameDimensionOrMinusOne<itkGetStaticConstMacro(InputImageDimension),
00092                                         itkGetStaticConstMacro(OutputImageDimension)>));
00093 
00095 #endif
00096 
00100   itkGetMacro( AccumulateDimension, unsigned int );
00101   itkSetMacro( AccumulateDimension, unsigned int );
00103 
00109   itkSetMacro( Average, bool );
00110   itkGetMacro( Average, bool );
00111   itkBooleanMacro(Average);
00113 
00114   
00115 
00116 protected:
00117   AccumulateImageFilter();
00118   virtual ~AccumulateImageFilter() {};
00119   void PrintSelf(std::ostream& os, Indent indent) const;
00120 
00122   virtual void GenerateOutputInformation();
00123 
00125   virtual void GenerateInputRequestedRegion();
00126 
00131   void GenerateData(void);
00132 
00133 private:
00134   AccumulateImageFilter(const Self&); //purposely not implemented
00135   void operator=(const Self&); //purposely not implemented
00136 
00137   unsigned int m_AccumulateDimension;
00138   bool m_Average;
00139 
00140 };
00141 
00142 } // end namespace itk
00143 
00144 #ifndef ITK_MANUAL_INSTANTIATION
00145 #include "itkAccumulateImageFilter.txx"
00146 #endif
00147 
00148 #endif
00149 
00150 
00151 

Generated at Sun Sep 23 11:49:33 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000