aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN.N. <sevyves@users.sourceforge.net>2010-08-08 15:25:58 +0000
committerN.N. <sevyves@users.sourceforge.net>2010-08-08 15:25:58 +0000
commit9767db2e0e93b4254354fe11986e13a2e93d5259 (patch)
tree136481d0bae25a74666d7c8bb53df2f7eda609eb
parent9a4fb3c214d03bb3dc452c24a1b2a91cbdcd5e38 (diff)
do not draw inexisting contours
svn path=/trunk/externals/pdp_opencv/; revision=13773
-rwxr-xr-xpdp_opencv_contours_boundingrect.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdp_opencv_contours_boundingrect.cc b/pdp_opencv_contours_boundingrect.cc
index a3ae202..ee4f57b 100755
--- a/pdp_opencv_contours_boundingrect.cc
+++ b/pdp_opencv_contours_boundingrect.cc
@@ -195,7 +195,7 @@ static void pdp_opencv_contours_boundingrect_process_rgb(t_pdp_opencv_contours_b
// draw old contours
for ( im=0; im<MAX_MARKERS; im++ )
{
- if ( x_xmark[im]==-1 ) continue;
+ if ( x->x_xmark[im]==-1 ) continue;
cvRectangle( x->cnt_img, cvPoint((int)(x->x_xmark[im]-x->x_wmark[im]/2),(int)(x->x_ymark[im]-x->x_hmark[im]/2)),
cvPoint((int)(x->x_xmark[im]+x->x_wmark[im]/2),(int)(x->x_ymark[im]+x->x_hmark[im]/2)), CV_RGB(0,0,255), 2, 8, 0 );