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/12/02 20:47:47 $
00007   Version:   $Revision: 1.11 $
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   typedef typename TInputImage::IndexType IndexType;
00063   
00065   itkSetConstObjectMacro(Image,ImageType);
00066 
00068   void ComputeMinimum(void);
00069 
00071   void ComputeMaximum(void);
00072 
00074   void Compute(void);
00075 
00077   itkGetMacro(Minimum,PixelType);
00078   
00080   itkGetMacro(Maximum,PixelType);
00081 
00083   itkGetConstReferenceMacro(IndexOfMinimum,IndexType);
00084 
00086   itkGetConstReferenceMacro(IndexOfMaximum,IndexType);
00087 
00088 protected:
00089   MinimumMaximumImageCalculator();
00090   virtual ~MinimumMaximumImageCalculator() {};
00091   void PrintSelf(std::ostream& os, Indent indent) const;
00092 
00093 private:
00094   MinimumMaximumImageCalculator(const Self&); //purposely not implemented
00095   void operator=(const Self&); //purposely not implemented
00096   
00097   PixelType            m_Minimum;
00098   PixelType            m_Maximum;
00099   ImageConstPointer    m_Image;
00100 
00101   IndexType            m_IndexOfMinimum;
00102   IndexType            m_IndexOfMaximum;
00103 
00104 };
00105 
00106 } // end namespace itk
00107 
00108 
00109 #ifndef ITK_MANUAL_INSTANTIATION
00110 #include "itkMinimumMaximumImageCalculator.txx"
00111 #endif
00112 
00113 #endif /* __itkMinimumMaximumImageCalculator_h */

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