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: 2009-04-25 12:27:32 $
00007   Version:   $Revision: 1.17 $
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 __itkMinimumMaximumImageCalculator_h
00018 #define __itkMinimumMaximumImageCalculator_h
00019 
00020 #include "itkObject.h"
00021 #include "itkObjectFactory.h"
00022 
00023 namespace itk
00024 {
00025 
00034 template <class TInputImage>
00035 class ITK_EXPORT MinimumMaximumImageCalculator : public Object 
00036 {
00037 public:
00039   typedef MinimumMaximumImageCalculator Self;
00040   typedef Object                        Superclass;
00041   typedef SmartPointer<Self>            Pointer;
00042   typedef SmartPointer<const Self>      ConstPointer;
00043 
00045   itkNewMacro(Self);
00046 
00048   itkTypeMacro(MinimumMaximumImageCalculator, Object);
00049 
00051   typedef TInputImage  ImageType;
00052 
00054   typedef typename TInputImage::Pointer  ImagePointer;
00055 
00057   typedef typename TInputImage::ConstPointer ImageConstPointer;
00058 
00060   typedef typename TInputImage::PixelType PixelType;
00061 
00063   typedef typename TInputImage::IndexType IndexType;
00064 
00066   typedef typename TInputImage::RegionType RegionType;
00067 
00069   itkSetConstObjectMacro(Image,ImageType);
00070 
00072   void ComputeMinimum(void);
00073 
00075   void ComputeMaximum(void);
00076 
00078   void Compute(void);
00079 
00081   itkGetConstMacro(Minimum,PixelType);
00082 
00084   itkGetConstMacro(Maximum,PixelType);
00085 
00087   itkGetConstReferenceMacro(IndexOfMinimum,IndexType);
00088 
00090   itkGetConstReferenceMacro(IndexOfMaximum,IndexType);
00091 
00093   void SetRegion( const RegionType & region );
00094 
00095 protected:
00096   MinimumMaximumImageCalculator();
00097   virtual ~MinimumMaximumImageCalculator() {};
00098   void PrintSelf(std::ostream& os, Indent indent) const;
00099 
00100 private:
00101   MinimumMaximumImageCalculator(const Self&); //purposely not implemented
00102   void operator=(const Self&); //purposely not implemented
00103   
00104   PixelType            m_Minimum;
00105   PixelType            m_Maximum;
00106   ImageConstPointer    m_Image;
00107 
00108   IndexType            m_IndexOfMinimum;
00109   IndexType            m_IndexOfMaximum;
00110 
00111   RegionType           m_Region;
00112   bool                 m_RegionSetByUser;
00113 };
00114 
00115 } // end namespace itk
00116 
00117 
00118 #ifndef ITK_MANUAL_INSTANTIATION
00119 #include "itkMinimumMaximumImageCalculator.txx"
00120 #endif
00121 
00122 #endif /* __itkMinimumMaximumImageCalculator_h */
00123 

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