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

itkMinimumMaximumImageFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMinimumMaximumImageFilter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/09/11 19:39:01 $
00007   Version:   $Revision: 1.4 $
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 __itkMinimumMaximumImageFilter_h
00018 #define __itkMinimumMaximumImageFilter_h
00019 
00020 #include "itkImageToImageFilter.h"
00021 
00022 namespace itk
00023 {
00035 template <class TInputImage>
00036 class ITK_EXPORT MinimumMaximumImageFilter :
00037     public ImageToImageFilter< TInputImage, TInputImage>
00038 {
00039 public:
00041   itkStaticConstMacro(InputImageDimension, unsigned int,
00042                       TInputImage::ImageDimension);
00043   itkStaticConstMacro(OutputImageDimension, unsigned int,
00044                       TInputImage::ImageDimension);
00045 
00047   typedef MinimumMaximumImageFilter Self;
00048   typedef ImageToImageFilter< TInputImage, TInputImage> Superclass;
00049   typedef SmartPointer<Self> Pointer;
00050   typedef SmartPointer<const Self>  ConstPointer;
00051 
00053   itkNewMacro(Self);
00054 
00056   itkTypeMacro(MinimumMaximumImageFilter, ImageToImageFilter);
00057   
00059   typedef TInputImage InputImageType;
00060   typedef typename InputImageType::PixelType InputPixelType;
00061 
00063   itkGetMacro(Minimum,InputPixelType);
00064   
00066   itkGetMacro(Maximum,InputPixelType);
00067 
00068 protected:
00069   MinimumMaximumImageFilter() {}
00070   virtual ~MinimumMaximumImageFilter() {}
00071   void PrintSelf(std::ostream& os, Indent indent) const;
00072 
00073   void GenerateData();
00074 
00075 private:
00076   MinimumMaximumImageFilter(const Self&); //purposely not implemented
00077   void operator=(const Self&); //purposely not implemented
00078   
00079   InputPixelType    m_Minimum;
00080   InputPixelType    m_Maximum;
00081 };
00082   
00083 } // end namespace itk
00084 
00085 #ifndef ITK_MANUAL_INSTANTIATION
00086 #include "itkMinimumMaximumImageFilter.txx"
00087 #endif
00088 
00089 #endif

Generated at Wed Mar 12 01:13:06 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000