aboutsummaryrefslogtreecommitdiff
path: root/pix_opencv_contours_boundingrect.h
diff options
context:
space:
mode:
authorN.N. <sevyves@users.sourceforge.net>2009-07-01 19:29:18 +0000
committerN.N. <sevyves@users.sourceforge.net>2009-07-01 19:29:18 +0000
commit11ec35baaa2ee0d44f88c5ecab2a3ea71d3c4105 (patch)
treee6db15bb0a1022a3420fe949717d9bd33d2eaa53 /pix_opencv_contours_boundingrect.h
parentbb51cb7b85a80bae5c867fdc92d15028d718b257 (diff)
added parameters and identification
svn path=/trunk/externals/pix_opencv/; revision=11840
Diffstat (limited to 'pix_opencv_contours_boundingrect.h')
-rw-r--r--pix_opencv_contours_boundingrect.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/pix_opencv_contours_boundingrect.h b/pix_opencv_contours_boundingrect.h
index 8ae88d1..cdec706 100644
--- a/pix_opencv_contours_boundingrect.h
+++ b/pix_opencv_contours_boundingrect.h
@@ -22,6 +22,8 @@ LOG
#include "cv.h"
#endif
+#define MAX_MARKERS 100
+
/*-----------------------------------------------------------------
-------------------------------------------------------------------
CLASS
@@ -62,24 +64,48 @@ class GEM_EXTERN pix_opencv_contours_boundingrect : public GemPixObj
// Set the new edge threshold
void floatMinAreaMess(float minarea);
void floatMaxAreaMess(float maxarea);
+ void floatFToleranceMess(float maxarea);
+ void floatMMoveMess(float maxarea);
+ void floatCModeMess(float maxarea);
+ void floatCMethodMess(float maxarea);
+ void floatClearMess(void);
+ int mark(float fx, float fy );
+ void deleteMark(float findex);
// The new minimal/maximal area
int minarea;
int maxarea;
// to detect changes in the image size
int comp_xsize;
int comp_ysize;
+ int x_xmark[MAX_MARKERS];
+ int x_ymark[MAX_MARKERS];
+ int x_found[MAX_MARKERS];
+ int x_ftolerance;
+ int x_mmove;
+
+ // contours retrieval mode
+ int x_cmode;
+ // contours retrieval method
+ int x_cmethod;
private:
t_outlet *m_dataout;
+ t_outlet *m_countout;
//////////
// Static member functions
static void floatMinAreaMessCallback(void *data, t_floatarg minarea);
static void floatMaxAreaMessCallback(void *data, t_floatarg maxarea);
+ static void floatFToleranceMessCallback(void *data, t_floatarg ftolerance);
+ static void floatMMoveMessCallback(void *data, t_floatarg mmove);
+ static void floatCModeMessCallback(void *data, t_floatarg cmode);
+ static void floatCMethodMessCallback(void *data, t_floatarg cmethod);
+ static void floatClearMessCallback(void *data);
/////////
// IplImage needed
IplImage *rgb, *orig, *cnt_img, *gray;
+ CvFont font;
};