aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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++)
{