itkOptMeanImageFilter.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 __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&);
00106 void operator=(const Self&);
00107 };
00108
00109 }
00110
00111 #ifndef ITK_MANUAL_INSTANTIATION
00112 #include "itkOptMeanImageFilter.txx"
00113 #endif
00114
00115 #endif
00116