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: 2003/09/10 14:28:52 $ 00007 Version: $Revision: 1.13 $ 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 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 typedef typename TInputImage::RegionType RegionType; 00066 00068 itkSetConstObjectMacro(Image,ImageType); 00069 00071 void ComputeMinimum(void); 00072 00074 void ComputeMaximum(void); 00075 00077 void Compute(void); 00078 00080 itkGetMacro(Minimum,PixelType); 00081 00083 itkGetMacro(Maximum,PixelType); 00084 00086 itkGetConstReferenceMacro(IndexOfMinimum,IndexType); 00087 00089 itkGetConstReferenceMacro(IndexOfMaximum,IndexType); 00090 00092 void SetRegion( const RegionType & region ); 00093 00094 protected: 00095 MinimumMaximumImageCalculator(); 00096 virtual ~MinimumMaximumImageCalculator() {}; 00097 void PrintSelf(std::ostream& os, Indent indent) const; 00098 00099 private: 00100 MinimumMaximumImageCalculator(const Self&); //purposely not implemented 00101 void operator=(const Self&); //purposely not implemented 00102 00103 PixelType m_Minimum; 00104 PixelType m_Maximum; 00105 ImageConstPointer m_Image; 00106 00107 IndexType m_IndexOfMinimum; 00108 IndexType m_IndexOfMaximum; 00109 00110 RegionType m_Region; 00111 bool m_RegionSetByUser; 00112 }; 00113 00114 } // end namespace itk 00115 00116 00117 #ifndef ITK_MANUAL_INSTANTIATION 00118 #include "itkMinimumMaximumImageCalculator.txx" 00119 #endif 00120 00121 #endif /* __itkMinimumMaximumImageCalculator_h */

Generated at Sat Mar 31 02:24:33 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000