00001 00009 class Cr 00010 { 00011 public: 00012 ~Cr(); 00013 Cr(); 00014 vector<Pt> con; 00015 int p; 00016 double c; 00017 }; 00018 00022 class CCContouring: public CCLabeling 00023 { 00024 protected: 00025 //members 00026 int cc; 00027 //functions 00028 void ContoursExtract(); 00029 void ContoursPostProcess(); 00030 int NCCount(Pt &); 00031 bool C2Test(Pt &); 00032 bool C3Test(Pt &); 00033 bool C4Test(Pt &); 00034 void CCompute(); 00035 public: 00036 //members 00037 vector<Cr> cri; 00038 //functions 00039 CCContouring(Image*); 00040 ~CCContouring(); 00041 void PerformContouring(); 00042 Image* ContoursDraw(); 00043 Image* ContoursTDraw(); 00044 }; 00045 00046 00047 00048 00049 00050 00051
1.3