aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Villeret <avilleret@users.sourceforge.net>2013-01-16 15:38:54 +0000
committerAntoine Villeret <avilleret@users.sourceforge.net>2013-01-16 15:38:54 +0000
commite143e2727b7d78b159d418272ba6c9d71a980008 (patch)
tree943af8c3c94450cca45ac4a11eec7b80d07b2ac2
parent6f991ea51bbcebc0cf3985a818b42e52452ed43b (diff)
remove or comment out debugging printf
svn path=/trunk/externals/pix_opencv/; revision=16882
-rw-r--r--pix_opencv_warpperspective.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/pix_opencv_warpperspective.cc b/pix_opencv_warpperspective.cc
index c97dfa0..de020e6 100644
--- a/pix_opencv_warpperspective.cc
+++ b/pix_opencv_warpperspective.cc
@@ -73,7 +73,7 @@ pix_opencv_warpperspective :: pix_opencv_warpperspective()
flags = CV_WARP_FILL_OUTLIERS; // TODO add a set method
findmethod = 0; // TODO add a set method
- printf("build on %s at %s\n", __DATE__, __TIME__);
+ //~ printf("build on %s at %s\n", __DATE__, __TIME__);
post("pix_opencv_warpperspective by Antoine Villeret");
post("build on %s at %s", __DATE__, __TIME__);
@@ -190,6 +190,7 @@ void pix_opencv_warpperspective :: mapMatrixMess (int argc, t_atom *argv)
CV_MAT_ELEM( *mapMatrix, float, 1, 2 ) = argv[7].a_w.w_float;
CV_MAT_ELEM( *mapMatrix, float, 2, 2 ) = argv[8].a_w.w_float;
+ /*
printf("---mapMatrix---\n");
for ( j = 0 ; j < 3 ; j++ ){
for( i=0 ; i<3 ; i++){
@@ -197,6 +198,7 @@ void pix_opencv_warpperspective :: mapMatrixMess (int argc, t_atom *argv)
}
printf("\n");
}
+ */
}
void pix_opencv_warpperspective :: srcMatrixMess (int argc, t_atom *argv)
@@ -251,7 +253,6 @@ void pix_opencv_warpperspective :: dstMatrixMess (int argc, t_atom *argv)
}
//~ printf("dstMatrix-cols = %d,\t argc = %d\n", dstMatrix->rows, argc);
if ( dstMatrix->rows != argc/2 ) {
- printf("re-create dstMatrix & srcMatrix\n");
// delete and recreate matrix if needed
cvReleaseMat(&dstMatrix);
cvReleaseMat(&srcMatrix);
@@ -260,7 +261,6 @@ void pix_opencv_warpperspective :: dstMatrixMess (int argc, t_atom *argv)
cvSet(srcMatrix, cvScalar(0)); // set all to 0.
}
// fillin the dstMatrix
- printf("fillin dstMatrix\n");
for ( i = 0 ; i < dstMatrix->rows ; i++ )
{
CV_MAT_ELEM( *dstMatrix, float, i, 0 ) = argv[i*2].a_w.w_float;
@@ -291,6 +291,7 @@ void pix_opencv_warpperspective :: findhomography( )
*/
cvFindHomography(srcMatrix, dstMatrix, mapMatrix, findmethod, 0, NULL);
+ /*
printf("---mapMatrix---\n");
for ( j = 0 ; j < 3 ; j++ ){
for( i=0 ; i<3 ; i++){
@@ -299,6 +300,7 @@ void pix_opencv_warpperspective :: findhomography( )
}
printf("\n");
}
+ */
// send out mapMatrix
outlet_list( m_dataout, 0, 9, mapMatrixList);
}