summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/ovision/see/magnifier.hh
diff options
context:
space:
mode:
Diffstat (limited to '2005/i/robert/src/ovision/see/magnifier.hh')
-rw-r--r--2005/i/robert/src/ovision/see/magnifier.hh10
1 files changed, 7 insertions, 3 deletions
diff --git a/2005/i/robert/src/ovision/see/magnifier.hh b/2005/i/robert/src/ovision/see/magnifier.hh
index b25c3ac..184b790 100644
--- a/2005/i/robert/src/ovision/see/magnifier.hh
+++ b/2005/i/robert/src/ovision/see/magnifier.hh
@@ -41,14 +41,18 @@ class Magnifier
Img *img_;
/// Liste des objects après analyse
std::vector<Zone> *itemList_;
+ /// Cible
+ Group::ZoneType aim_;
+ /// Liste de quilles
+ std::vector<Skittle> *skittleList_;
public:
/// Constructeur
- Magnifier (Img *img, Segm *segm);
+ Magnifier (Img *img, Segm *segm, Group::ZoneType aim);
/// Destructeur
~Magnifier (void);
/// Analyse une liste de zones
- void analyse (std::vector<Zone> &zoneList);
+ bool analyse (std::vector<Zone> &zoneList);
/// Affiche les zones trouvees après analyse
void showItems (const Group::ZoneType type) const;
/// Renvoie une liste d'objet
@@ -61,7 +65,7 @@ class Magnifier
/// Test si l'object s'agit d'un doublon
bool checkIsUnique (const Zone &zone);
/// Test la validité des objects
- bool isSkittle (Zone &zone);
+ Skittle* isSkittle (Zone &zone);
bool isRedSkittle (const Zone &zone) const;
bool isGreenSkittle (const Zone &zone) const;
bool isBase (const Zone &zone) const;