aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN.N. <sevyves@users.sourceforge.net>2009-08-29 22:02:24 +0000
committerN.N. <sevyves@users.sourceforge.net>2009-08-29 22:02:24 +0000
commit9014d3e6d0cb5aa86a84a6eed60f583ff68b310d (patch)
tree9d2ad67d67d03e2f423eb4c736f26865768f2846
parent96223f6ea8fb4d222c21841ed81861973cb4b214 (diff)
bug in tracking
svn path=/trunk/externals/pdp_opencv/; revision=12140
-rw-r--r--pdp_opencv_floodfill.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/pdp_opencv_floodfill.c b/pdp_opencv_floodfill.c
index 0c287a5..060630c 100644
--- a/pdp_opencv_floodfill.c
+++ b/pdp_opencv_floodfill.c
@@ -140,10 +140,6 @@ static void pdp_opencv_floodfill_process_rgb(t_pdp_opencv_floodfill *x)
SETFLOAT(&x->x_list[3], comp.rect.width);
SETFLOAT(&x->x_list[4], comp.rect.height);
outlet_list( x->x_outlet1, 0, 5, x->x_list );
-
- // follow the blob
- x->x_xcomp[i] = comp.rect.x + ( comp.rect.width / 2 );
- x->x_ycomp[i] = comp.rect.y + ( comp.rect.height / 2 );
}
}
@@ -285,7 +281,7 @@ static void pdp_opencv_floodfill_mark(t_pdp_opencv_floodfill *x, t_floatarg fper
{
x->x_xcomp[i] = (int)(fperx*x->x_width);
x->x_ycomp[i] = (int)(fpery*x->x_height);
- post( "pdp_opencv_floodfill : inserted point (%d,%d)", x->x_xcomp[i], x->x_ycomp[i] );
+ // post( "pdp_opencv_floodfill : inserted point (%d,%d)", x->x_xcomp[i], x->x_ycomp[i] );
inserted = 1;
break;
}