From 9767db2e0e93b4254354fe11986e13a2e93d5259 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Sun, 8 Aug 2010 15:25:58 +0000 Subject: do not draw inexisting contours svn path=/trunk/externals/pdp_opencv/; revision=13773 --- pdp_opencv_contours_boundingrect.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; imx_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 ); -- cgit v1.2.1