diff options
author | lluís gómez i bigordà <lluisbigorda@users.sourceforge.net> | 2011-02-23 00:18:47 +0000 |
---|---|---|
committer | lluís gómez i bigordà <lluisbigorda@users.sourceforge.net> | 2011-02-23 00:18:47 +0000 |
commit | 8d07e095950b64fc0d3953fed08c5606d47f10d5 (patch) | |
tree | 4d652314abb49d1633d4d2527eb8c7eefd468e26 | |
parent | 26d2ebd35e1533a72e07762b2821865ab43d444d (diff) |
draw blob id label in different color
svn path=/trunk/externals/pix_opencv/; revision=14951
-rw-r--r-- | pix_opencv_contours_boundingrect.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pix_opencv_contours_boundingrect.cc b/pix_opencv_contours_boundingrect.cc index 42b978c..3004386 100644 --- a/pix_opencv_contours_boundingrect.cc +++ b/pix_opencv_contours_boundingrect.cc @@ -211,7 +211,7 @@ void pix_opencv_contours_boundingrect :: processRGBAImage(imageStruct &image) { cvRectangle( orig, cvPoint(rect.x,rect.y), cvPoint(rect.x+rect.width,rect.y+rect.height), CV_RGB(255,0,0), 2, 8 , 0 ); sprintf( tindex, "%d", oi ); - cvPutText( orig, tindex, cvPoint(x_xmark[oi],x_ymark[oi]), &font, CV_RGB(255,0,0)); + cvPutText( orig, tindex, cvPoint(x_xmark[oi],x_ymark[oi]), &font, CV_RGB(255,0,255)); } if ( x_show ) @@ -359,7 +359,7 @@ void pix_opencv_contours_boundingrect :: processRGBImage(imageStruct &image) { cvRectangle( rgb, cvPoint(rect.x,rect.y), cvPoint(rect.x+rect.width,rect.y+rect.height), CV_RGB(255,0,0), 2, 8 , 0 ); sprintf( tindex, "%d", oi ); - cvPutText( rgb, tindex, cvPoint(x_xmark[oi],x_ymark[oi]), &font, CV_RGB(255,0,0)); + cvPutText( rgb, tindex, cvPoint(x_xmark[oi],x_ymark[oi]), &font, CV_RGB(255,0,255)); } if ( x_show ) |