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

itkMinimumMaximumImageCalculator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkMinimumMaximumImageCalculator.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/08/27 18:55:12 $
00007   Version:   $Revision: 1.10 $
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 __itkMinimumMaximumImageCalculator_h
00018 #define __itkMinimumMaximumImageCalculator_h
00019 
00020 #include "itkObject.h"
00021 #include "itkObjectFactory.h"
00022 
00023 namespace itk
00024 {
00025 
00033 template <class TInputImage>            
00034 class ITK_EXPORT MinimumMaximumImageCalculator : public Object 
00035 {
00036 public:
00038   typedef MinimumMaximumImageCalculator Self;
00039   typedef Object  Superclass;
00040   typedef SmartPointer<Self>   Pointer;
00041   typedef SmartPointer<const Self>  ConstPointer;
00042 
00044   itkNewMacro(Self);
00045 
00047   itkTypeMacro(Self, Object);
00048 
00050   typedef TInputImage  ImageType;
00051 
00053   typedef typename TInputImage::Pointer  ImagePointer;
00054   
00056   typedef typename TInputImage::ConstPointer ImageConstPointer;
00057 
00059   typedef typename TInputImage::PixelType PixelType;
00060   
00062   itkSetConstObjectMacro(Image,ImageType);
00063 
00065   void ComputeMinimum(void);
00066 
00068   void ComputeMaximum(void);
00069 
00071   void Compute(void);
00072 
00074   itkGetMacro(Minimum,PixelType);
00075   
00077   itkGetMacro(Maximum,PixelType);
00078 
00079 protected:
00080   MinimumMaximumImageCalculator();
00081   virtual ~MinimumMaximumImageCalculator() {};
00082   void PrintSelf(std::ostream& os, Indent indent) const;
00083 
00084 private:
00085   MinimumMaximumImageCalculator(const Self&); //purposely not implemented
00086   void operator=(const Self&); //purposely not implemented
00087   
00088    PixelType            m_Minimum;
00089    PixelType            m_Maximum;
00090    ImageConstPointer    m_Image;
00091 
00092 };
00093 
00094 } // end namespace itk
00095 
00096 
00097 #ifndef ITK_MANUAL_INSTANTIATION
00098 #include "itkMinimumMaximumImageCalculator.txx"
00099 #endif
00100 
00101 #endif /* __itkMinimumMaximumImageCalculator_h */

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