aboutsummaryrefslogtreecommitdiff
path: root/pix_opencv_contours_boundingrect.h
diff options
context:
space:
mode:
authorN.N. <sevyves@users.sourceforge.net>2010-08-08 17:23:44 +0000
committerN.N. <sevyves@users.sourceforge.net>2010-08-08 17:23:44 +0000
commit84e702368750bba07f231178e1264c2ea4e3929c (patch)
tree22db45e6eb41305abd19756d917c2478583f49ec /pix_opencv_contours_boundingrect.h
parent15ec89b8acb5e2fb3f41b45cc37fd3c585bdb38b (diff)
compare contours and points to the closest object
svn path=/trunk/externals/pix_opencv/; revision=13775
Diffstat (limited to 'pix_opencv_contours_boundingrect.h')
-rw-r--r--pix_opencv_contours_boundingrect.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/pix_opencv_contours_boundingrect.h b/pix_opencv_contours_boundingrect.h
index 434a77c..e599f69 100644
--- a/pix_opencv_contours_boundingrect.h
+++ b/pix_opencv_contours_boundingrect.h
@@ -22,7 +22,7 @@ LOG
#include "Base/GemPixObj.h"
-#define MAX_MARKERS 100
+#define MAX_MARKERS 500
/*-----------------------------------------------------------------
-------------------------------------------------------------------
@@ -72,7 +72,7 @@ class GEM_EXTERN pix_opencv_contours_boundingrect : public GemPixObj
void floatNightmodeMess(float nightmode);
void floatShowMess(float show);
void floatDrawMess(float draw);
- int mark(float fx, float fy );
+ int mark(float fx, float fy, float fw, float fh );
void deleteMark(float findex);
// The new minimal/maximal area
int minarea;
@@ -80,8 +80,10 @@ class GEM_EXTERN pix_opencv_contours_boundingrect : public GemPixObj
// to detect changes in the image size
int comp_xsize;
int comp_ysize;
- int x_xmark[MAX_MARKERS];
- int x_ymark[MAX_MARKERS];
+ float x_xmark[MAX_MARKERS];
+ float x_ymark[MAX_MARKERS];
+ int x_wmark[MAX_MARKERS];
+ int x_hmark[MAX_MARKERS];
int x_found[MAX_MARKERS];
int x_ftolerance;
int x_mmove;