00001 00009 class Cc 00010 { 00011 public: 00012 //members 00013 int label; 00014 int cgx,cgy,x0,y0,dx,dy; 00015 int s; 00016 //functions 00017 Cc(); 00018 void CurrentProcess(Point); 00019 void FinalProcess(int); 00020 }; 00021 00025 class CCLabeling 00026 { 00027 protected: 00028 //members 00029 Pt pte; 00030 //functions 00031 bool FindEntryPoint(); 00032 void ComponentLabeling(); 00033 int InitLabel(); 00034 void WriteLabel(Cc &,int); 00035 public: 00036 //members 00037 Image *labelmap; 00038 vector <Cc> cci; 00039 //functions 00040 CCLabeling(Image*); 00041 ~CCLabeling(); 00042 void ImageLabeling(bool); 00043 }; 00044 00045 00046
1.3