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

itkOptMeanImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkOptMeanImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-08-05 11:51:08 $
00007   Version:   $Revision: 1.1 $
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 __itkOptMeanImageFilter_h
00018 #define __itkOptMeanImageFilter_h
00019 
00020 #include "itkBoxImageFilter.h"
00021 #include "itkImage.h"
00022 #include "itkNumericTraits.h"
00023 
00024 namespace itk
00025 {
00041 template <class TInputImage, class TOutputImage>
00042 class ITK_EXPORT MeanImageFilter :
00043     public BoxImageFilter< TInputImage, TOutputImage >
00044 {
00045 public:
00047   itkStaticConstMacro(InputImageDimension, unsigned int,
00048                       TInputImage::ImageDimension);
00049   itkStaticConstMacro(OutputImageDimension, unsigned int,
00050                       TOutputImage::ImageDimension);
00052 
00054   typedef TInputImage                                      InputImageType;
00055   typedef TOutputImage                                     OutputImageType;
00056 
00058   typedef MeanImageFilter                                  Self;
00059   typedef BoxImageFilter< InputImageType, OutputImageType> Superclass;
00060   typedef SmartPointer<Self>                               Pointer;
00061   typedef SmartPointer<const Self>                         ConstPointer;
00062 
00064   itkNewMacro(Self);
00065 
00067   itkTypeMacro(MeanImageFilter, BoxImageFilter);
00068 
00070   typedef typename InputImageType::PixelType               InputPixelType;
00071   typedef typename OutputImageType::PixelType              OutputPixelType;
00072   typedef typename NumericTraits<InputPixelType>::RealType InputRealType;
00073 
00074   typedef typename InputImageType::RegionType              InputImageRegionType;
00075   typedef typename OutputImageType::RegionType             OutputImageRegionType;
00076 
00077   typedef typename InputImageType::SizeType                InputSizeType;
00078 
00079 #ifdef ITK_USE_CONCEPT_CHECKING
00080 
00081   itkConceptMacro(InputHasNumericTraitsCheck,
00082                   (Concept::HasNumericTraits<InputPixelType>));
00083 
00085 #endif
00086 
00087 protected:
00088   MeanImageFilter();
00089   virtual ~MeanImageFilter() {}
00090 
00101   void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
00102                             int threadId );
00103 
00104 private:
00105   MeanImageFilter(const Self&); //purposely not implemented
00106   void operator=(const Self&); //purposely not implemented
00107 };
00108   
00109 } // end namespace itk
00110 
00111 #ifndef ITK_MANUAL_INSTANTIATION
00112 #include "itkOptMeanImageFilter.txx"
00113 #endif
00114 
00115 #endif
00116 

Generated at Thu May 28 11:02:53 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000