aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlluís gómez i bigordà <lluisbigorda@users.sourceforge.net>2009-09-18 15:51:47 +0000
committerlluís gómez i bigordà <lluisbigorda@users.sourceforge.net>2009-09-18 15:51:47 +0000
commit20b7d0c4f289c7283f236f52ad90dbf017aeb90e (patch)
tree95bcae42e0e9a31380b27a37bce87b30963c7b5d
parent85258593cb9628e4e0b315a402552e3d5941458e (diff)
solved strange Y coordinate GEM issue
svn path=/trunk/externals/pix_opencv/; revision=12393
-rw-r--r--pix_opencv_camshift.cc2
-rw-r--r--pix_opencv_floodfill.cc3
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<MAX_COMPONENTS; i++)
{