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

itkKLMSegmentationRegion.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkKLMSegmentationRegion.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/01/15 18:57:02 $
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 _itkKLMSegmentationRegion_h
00018 #define _itkKLMSegmentationRegion_h
00019 
00020 #include "itkObject.h"
00021 #include "itkKLMSegmentationBorder.h"
00022 #include "itkSegmentationRegion.h"
00023 
00024 #include "vnl/vnl_vector.h"
00025 #include "vnl/vnl_matrix.h"
00026 
00027 namespace itk
00028 {
00029 
00094 class KLMSegmentationBorder;
00095 
00096 class ITK_EXPORT KLMSegmentationRegion : public SegmentationRegion
00097 {
00098 private:
00100   typedef vnl_matrix<double> VectorOfDoubleType;
00101 
00102 public:
00104   typedef KLMSegmentationRegion   Self;
00105   typedef SegmentationRegion Superclass;
00106   typedef SmartPointer<Self>  Pointer;
00107   typedef SmartPointer<const Self>  ConstPointer;
00108 
00110   itkNewMacro(Self);
00111 
00113   itkTypeMacro(KLMSegmentationRegion,SegmentationRegion);
00114 
00117   typedef std::vector< KLMSegmentationBorder* > 
00118       RegionBorderVectorType;
00119 
00121   typedef RegionBorderVectorType::iterator RegionBorderVectorIterator;
00122 
00125   void SetRegion(VectorOfDoubleType regionMeanIntensity, 
00126                  unsigned int regionArea,
00127                  unsigned int label);
00128 
00130   void SetRegionBorder(KLMSegmentationBorder *pNewRegionBorder);
00131 
00133   void SetRegionBorder3d(KLMSegmentationBorder *pNewRegionBorder);
00134 
00136   KLMSegmentationBorder *GetFirstRegionBorder();
00137 
00139   void DeleteRegionBorder(KLMSegmentationBorder *pBorderCandidate);
00141   void InsertRegionBorder(RegionBorderVectorIterator it,
00142                           KLMSegmentationBorder *pBorderCandidate);
00143 
00145   void DeleteAllRegionBorders();
00146 
00149   void ReorderRegionBorders(KLMSegmentationBorder *pBorderCandidate);
00150 
00153   RegionBorderVectorIterator GetRegionBorderItBegin();
00154 
00157   RegionBorderVectorIterator GetRegionBorderItEnd();
00158 
00162   void UpdateRegionBorderLambda();
00163 
00165   void PrintRegionInfo();
00166 
00167 protected:
00168   KLMSegmentationRegion();
00169   ~KLMSegmentationRegion();
00170   void PrintSelf(std::ostream& os, Indent indent) const;
00171 
00172 private:
00173   KLMSegmentationRegion(const Self&); //purposely not implemented
00174   void operator=(const Self&); //purposely not implemented
00175   
00176   RegionBorderVectorType    m_RegionBorderVector;
00177 
00178 }; // class SegmentationRegion
00179 
00180 
00181 } // namespace itk
00182 
00183 
00184 #endif
00185 

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