From 20b7d0c4f289c7283f236f52ad90dbf017aeb90e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?llu=C3=ADs=20g=C3=B3mez=20i=20bigord=C3=A0?= Date: Fri, 18 Sep 2009 15:51:47 +0000 Subject: solved strange Y coordinate GEM issue svn path=/trunk/externals/pix_opencv/; revision=12393 --- pix_opencv_camshift.cc | 2 +- pix_opencv_floodfill.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pix_opencv_camshift.cc b/pix_opencv_camshift.cc index 8703734..879a9f2 100644 --- a/pix_opencv_camshift.cc +++ b/pix_opencv_camshift.cc @@ -422,7 +422,7 @@ void pix_opencv_camshift :: trackMess(float px, float py) if ( ( px<0.0 ) || ( px>comp_xsize ) || ( py<0.0 ) || ( py>comp_ysize ) ) return; - py = comp_ysize - py; + //py = comp_ysize - py; origin = cvPoint((int)px,(int)py); rx = ( (int)px-(x_rwidth/2) < 0 )? 0:(int)px-(x_rwidth/2); ry = ( (int)py-(x_rheight/2) < 0 )? 0:(int)py-(x_rheight/2); diff --git a/pix_opencv_floodfill.cc b/pix_opencv_floodfill.cc index 1c8cdd3..f41d3c0 100644 --- a/pix_opencv_floodfill.cc +++ b/pix_opencv_floodfill.cc @@ -379,7 +379,8 @@ void pix_opencv_floodfill :: markMess(float fpx, float fpy) } px = (int)fpx; - py = comp_ysize-(int)fpy; + //py = comp_ysize-(int)fpy; + py = (int)fpy; inserted = 0; for ( i=0; i