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

itkNonThreadedShrinkImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkNonThreadedShrinkImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-04-07 18:58:49 $
00007   Version:   $Revision: 1.21 $
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 __itkNonThreadedShrinkImageFilter_h
00018 #define __itkNonThreadedShrinkImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 #include "itkShrinkImageFilter.h"
00022 
00023 namespace itk
00024 {
00025 
00046 template <class TInputImage, class TOutputImage>
00047 class ITK_EXPORT NonThreadedShrinkImageFilter:
00048     public ShrinkImageFilter<TInputImage,TOutputImage>
00049 {
00050 public:
00052   typedef NonThreadedShrinkImageFilter                  Self;
00053   typedef ImageToImageFilter<TInputImage,TOutputImage>  Superclass;
00054   typedef SmartPointer<Self>                            Pointer;
00055   typedef SmartPointer<const Self>                      ConstPointer;
00056 
00058   itkNewMacro(Self);  
00059 
00061   itkTypeMacro(NonThreadedShrinkImageFilter, ShrinkImageFilter);
00062 
00063   virtual void SetNumberOfThreads( int )
00064     {
00065     Superclass::SetNumberOfThreads(1);
00066     }
00067 
00068 protected:
00069   NonThreadedShrinkImageFilter()
00070     {
00071     Superclass::SetNumberOfThreads(1);
00072     }
00073 
00074 private:
00075   NonThreadedShrinkImageFilter(const Self&); //purposely not implemented
00076   void operator=(const Self&); //purposely not implemented
00077 };
00078   
00079 } // end namespace itk
00080   
00081 #endif
00082 

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