From fb075a07e3347a357e18b7df3795909b0d6f4918 Mon Sep 17 00:00:00 2001 From: gaillaro Date: Sat, 23 Apr 2005 18:58:44 +0000 Subject: * ajout détection des groupes de quilles * essai de detection des vis * detection verticalité --- 2005/i/robert/src/ovision/see/magnifier.hh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to '2005/i/robert/src/ovision/see/magnifier.hh') diff --git a/2005/i/robert/src/ovision/see/magnifier.hh b/2005/i/robert/src/ovision/see/magnifier.hh index 184b790..464e20f 100644 --- a/2005/i/robert/src/ovision/see/magnifier.hh +++ b/2005/i/robert/src/ovision/see/magnifier.hh @@ -45,7 +45,7 @@ class Magnifier Group::ZoneType aim_; /// Liste de quilles std::vector *skittleList_; - + public: /// Constructeur Magnifier (Img *img, Segm *segm, Group::ZoneType aim); @@ -58,14 +58,20 @@ class Magnifier /// Renvoie une liste d'objet std::vector& getItemList (Group::ZoneType type) {return itemList_[type];} + /// Affiche des infos sur une zone + void showZone (const Zone &z) const; private: /// Ajout d'un objet - void addItem (Zone &zone); + void addItem (Zone &zone, std::vector *list); /// Test si l'object s'agit d'un doublon - bool checkIsUnique (const Zone &zone); + bool checkIsUnique (const Zone &zone, std::vector *list); + /// Test si les zones sont liées + bool areBound (const Zone &z1, const Zone &z2); /// Test la validité des objects Skittle* isSkittle (Zone &zone); + void add (Zone &zone, std::vector *list); + bool scan (); bool isRedSkittle (const Zone &zone) const; bool isGreenSkittle (const Zone &zone) const; bool isBase (const Zone &zone) const; -- cgit v1.2.3