aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Villeret <avilleret@users.sourceforge.net>2012-12-20 00:22:35 +0000
committerAntoine Villeret <avilleret@users.sourceforge.net>2012-12-20 00:22:35 +0000
commitad4e1e117491f61dafc998c47fb7ca3997990436 (patch)
tree92fdecc1a71da0dc3e39642764f8fdd04b1ecbff
parente76d5ceef63e462c1f5d715a9e807a6b8f8547a6 (diff)
fix bug in semgent number on info outlet
svn path=/trunk/externals/pix_opencv/; revision=16711
-rw-r--r--pix_opencv_contours.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/pix_opencv_contours.cc b/pix_opencv_contours.cc
index 438d947..2697fcb 100644
--- a/pix_opencv_contours.cc
+++ b/pix_opencv_contours.cc
@@ -116,7 +116,7 @@ void pix_opencv_contours :: processGrayImage(imageStruct &image)
SETFLOAT(info+info_offset+11, rot_rect.size.width/image.xsize);
SETFLOAT(info+info_offset+12, rot_rect.size.height/image.xsize);
SETFLOAT(info+info_offset+13, rot_rect.angle);
- SETFLOAT(info+info_offset+14, it->size()/2); // number of points in segment
+ SETFLOAT(info+info_offset+14, it->size()); // number of points in segment
SETFLOAT(info+info_offset+15, 0);
SETFLOAT(info+info_offset+16, 0);
SETFLOAT(info+info_offset+17, 0);