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

itkMiniPipelineSeparableImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMiniPipelineSeparableImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-08-08 13:19:21 $
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 
00018 #ifndef __itkMiniPipelineSeparableImageFilter_h
00019 #define __itkMiniPipelineSeparableImageFilter_h
00020 
00021 #include "itkBoxImageFilter.h"
00022 #include "itkCastImageFilter.h"
00023 
00024 
00025 namespace itk {
00026 
00042 template<class TInputImage, class TOutputImage, class TFilter>
00043 class ITK_EXPORT MiniPipelineSeparableImageFilter : 
00044 public BoxImageFilter<TInputImage, TOutputImage>
00045 {
00046 public:
00048   typedef MiniPipelineSeparableImageFilter          Self;
00049   typedef BoxImageFilter<TInputImage,TOutputImage>  Superclass;
00050   typedef SmartPointer<Self>                        Pointer;
00051   typedef SmartPointer<const Self>                  ConstPointer;
00052 
00054   itkNewMacro(Self);
00055 
00057   itkTypeMacro(MiniPipelineSeparableImageFilter,
00058                BoxImageFilter);
00059 
00061   typedef TInputImage                               InputImageType;
00062   typedef typename TInputImage::RegionType          RegionType;
00063   typedef typename TInputImage::SizeType            SizeType;
00064   typedef typename TInputImage::IndexType           IndexType;
00065   typedef typename TInputImage::PixelType           PixelType;
00066   typedef typename TInputImage::OffsetType          OffsetType;
00067 
00068   typedef TOutputImage                              OutputImageType;
00069   typedef typename TOutputImage::PixelType          OutputPixelType;
00070 
00071   typedef TFilter FilterType;
00072   typedef CastImageFilter< InputImageType, OutputImageType >
00073                                                     CastType;
00074   
00076   itkStaticConstMacro(ImageDimension, unsigned int,
00077                       TInputImage::ImageDimension);
00078 
00080   typedef typename TInputImage::SizeType            RadiusType;
00081 
00082   virtual void SetRadius( const RadiusType & );
00083 
00084   virtual void SetRadius( const unsigned long & radius )
00085     {
00086     // needed because of the overloading of the method
00087     Superclass::SetRadius( radius );
00088     }
00089 
00090   virtual void Modified() const;
00091 
00092   virtual void SetNumberOfThreads( int nb );
00093 
00094 protected:
00095   MiniPipelineSeparableImageFilter();
00096   ~MiniPipelineSeparableImageFilter() {};
00097 
00098   void GenerateData();
00099 
00100   typename FilterType::Pointer m_Filters[ImageDimension];
00101   typename CastType::Pointer   m_Cast;
00102 
00103 private:
00104   MiniPipelineSeparableImageFilter(const Self&); //purposely not implemented
00105   void operator=(const Self&); //purposely not implemented
00106 };
00107 
00108 }
00109 
00110 #ifndef ITK_MANUAL_INSTANTIATION
00111 #include "itkMiniPipelineSeparableImageFilter.txx"
00112 #endif
00113 
00114 #endif
00115 

Generated at Mon Jul 12 2010 19:08:53 for ITK by doxygen 1.7.1 written by Dimitri van Heesch, © 1997-2000