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: 2002/01/15 19:36:09 $
00007   Version:   $Revision: 1.15 $
00008 
00009   Copyright (c) 2002 Insight 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 
00022 namespace itk
00023 {
00024 
00040 template <class TInputImage, class TOutputImage>
00041 class ITK_EXPORT NonThreadedShrinkImageFilter:
00042     public ImageToImageFilter<TInputImage,TOutputImage>
00043 {
00044 public:
00046   typedef NonThreadedShrinkImageFilter         Self;
00047   typedef ImageToImageFilter<TInputImage,TOutputImage>  Superclass;
00048   typedef SmartPointer<Self>  Pointer;
00049   typedef SmartPointer<const Self>  ConstPointer;
00050 
00052   itkNewMacro(Self);  
00053 
00055   itkTypeMacro(NonThreadedShrinkImageFilter, ImageToImageFilter);
00056 
00058   itkSetClampMacro(ShrinkFactor,unsigned int, 1,
00059                    NumericTraits<unsigned int>::max());
00060   
00062   itkGetMacro(ShrinkFactor,unsigned int);
00063                  
00071   virtual void GenerateOutputInformation();
00072 
00079   virtual void GenerateInputRequestedRegion();
00080 
00081 protected:
00082   NonThreadedShrinkImageFilter();
00083   ~NonThreadedShrinkImageFilter() {};
00084   void PrintSelf(std::ostream& os, Indent indent) const;
00085   
00086   void GenerateData();
00087 
00088 private:
00089   NonThreadedShrinkImageFilter(const Self&); //purposely not implemented
00090   void operator=(const Self&); //purposely not implemented
00091 
00092   unsigned int m_ShrinkFactor;
00093 };
00094   
00095 } // end namespace itk
00096   
00097 #ifndef ITK_MANUAL_INSTANTIATION
00098 #include "itkNonThreadedShrinkImageFilter.txx"
00099 #endif
00100   
00101 #endif

Generated at Fri May 21 01:15:08 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000