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 __itkProjectionImageFilter_h
00018 #define __itkProjectionImageFilter_h
00019
00020 #include "itkImageToImageFilter.h"
00021 #include "itkConceptChecking.h"
00022
00023 namespace itk
00024 {
00025
00054 template <class TInputImage, class TOutputImage, class TAccumulator>
00055 class ITK_EXPORT ProjectionImageFilter :
00056 public ImageToImageFilter<TInputImage,TOutputImage>
00057 {
00058 public:
00060 typedef ProjectionImageFilter Self;
00061 typedef ImageToImageFilter<TInputImage,TOutputImage> Superclass;
00062 typedef SmartPointer<Self> Pointer;
00063 typedef SmartPointer<const Self> ConstPointer;
00064
00066 itkNewMacro(Self);
00067
00069 itkTypeMacro(ProjectionImageFilter, ImageToImageFilter);
00070
00072 typedef TInputImage InputImageType;
00073 typedef typename InputImageType::Pointer InputImagePointer;
00074 typedef typename InputImageType::RegionType InputImageRegionType;
00075 typedef typename InputImageType::PixelType InputImagePixelType;
00076 typedef TOutputImage OutputImageType;
00077 typedef typename OutputImageType::Pointer OutputImagePointer;
00078 typedef typename OutputImageType::RegionType OutputImageRegionType;
00079 typedef typename OutputImageType::PixelType OutputImagePixelType;
00080
00081 typedef TAccumulator AccumulatorType;
00082
00084 itkStaticConstMacro(InputImageDimension, unsigned int,
00085 TInputImage::ImageDimension);
00086 itkStaticConstMacro(OutputImageDimension, unsigned int,
00087 TOutputImage::ImageDimension);
00089
00092 #ifdef ITK_USE_CONCEPT_CHECKING
00093
00095 itkConceptMacro(ImageDimensionCheck,
00096 (Concept::SameDimensionOrMinusOne<
00097 itkGetStaticConstMacro(InputImageDimension),
00098 itkGetStaticConstMacro(OutputImageDimension)>));
00099
00101 #endif
00102
00103
00106 itkSetMacro( ProjectionDimension, unsigned int );
00107 itkGetConstReferenceMacro( ProjectionDimension, unsigned int );
00109
00110
00111 protected:
00112 ProjectionImageFilter();
00113 virtual ~ProjectionImageFilter() {};
00114 void PrintSelf(std::ostream& os, Indent indent) const;
00115
00117 virtual void GenerateOutputInformation();
00118
00120 virtual void GenerateInputRequestedRegion();
00121
00122 virtual void ThreadedGenerateData(
00123 const OutputImageRegionType& outputRegionForThread, int threadId );
00124
00125 virtual AccumulatorType NewAccumulator( unsigned long ) const;
00126
00127 private:
00128 ProjectionImageFilter(const Self&);
00129 void operator=(const Self&);
00130
00131 unsigned int m_ProjectionDimension;
00132
00133 };
00134
00135 }
00136
00137 #ifndef ITK_MANUAL_INSTANTIATION
00138 #include "itkProjectionImageFilter.txx"
00139 #endif
00140
00141 #endif
00142