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

itkProjectionImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkProjectionImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-01-28 18:14:36 $
00007   Version:   $Revision: 1.2 $
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 __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&); //purposely not implemented
00129   void operator=(const Self&); //purposely not implemented
00130 
00131   unsigned int m_ProjectionDimension;
00132 
00133 };
00134 
00135 } // end namespace itk
00136 
00137 #ifndef ITK_MANUAL_INSTANTIATION
00138 #include "itkProjectionImageFilter.txx"
00139 #endif
00140 
00141 #endif
00142 

Generated at Fri Apr 16 19:20:09 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000