summaryrefslogtreecommitdiff
path: root/2004/i/nono/src/ovision/group.h
diff options
context:
space:
mode:
Diffstat (limited to '2004/i/nono/src/ovision/group.h')
-rw-r--r--2004/i/nono/src/ovision/group.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/2004/i/nono/src/ovision/group.h b/2004/i/nono/src/ovision/group.h
index c0bf594..f7f41cf 100644
--- a/2004/i/nono/src/ovision/group.h
+++ b/2004/i/nono/src/ovision/group.h
@@ -9,7 +9,8 @@
// TODO delta devrait diminuer avec la profondeur
#define PRECISION 80 // distance a partir 2 groups sont 2 balles distinctes
-
+#define BALL 1
+#define GOAL 2
/// Liste chainee des zones trouvees par la classe group
struct ZONE {
@@ -28,6 +29,10 @@ struct ZONE {
/// l'objet est vue partiellement ou completement
bool partial;
+ /// l'objet est situé en bas de l'image
+ bool bottom;
+
+
/// maillon suivant
ZONE *next;
};
@@ -42,6 +47,8 @@ class Group {
/// classe image
Img *img;
+ OConfig *oconfig;
+
/// largeur de l'image a analyser
int width;
@@ -79,7 +86,10 @@ class Group {
void DoDeltaTable ();
/// Retourne le delta utilisé pour la dissociation de 2 balles proches
- int GetDelta (int y);
+ int GetDelta (int type, int y);
+
+ /// Test si la zone trouvé est valide
+ bool IsValidZone (int type, int xmin, int xmax, int ymin, int ymax);
protected:
/// Cherche l'objet complet a partir d'un pixel
void Plague(int type, unsigned char numColor, int x, int y);