diff options
author | Antoine Villeret <avilleret@users.sourceforge.net> | 2013-01-15 18:22:01 +0000 |
---|---|---|
committer | Antoine Villeret <avilleret@users.sourceforge.net> | 2013-01-15 18:22:01 +0000 |
commit | 6f991ea51bbcebc0cf3985a818b42e52452ed43b (patch) | |
tree | f9322d2fcc31caf902b5e6410c44b487729b5402 | |
parent | d49730bca5bd35af05638c7a3b00a697c6cd880a (diff) |
fix info outlet
svn path=/trunk/externals/pix_opencv/; revision=16872
-rw-r--r-- | pix_opencv_contours.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pix_opencv_contours.cc b/pix_opencv_contours.cc index 85d6ea4..3c5124f 100644 --- a/pix_opencv_contours.cc +++ b/pix_opencv_contours.cc @@ -188,13 +188,12 @@ void pix_opencv_contours :: processGrayImage(imageStruct &image) count++; } } - - if ( !m_taboutput ){ SETFLOAT(info, (float) count); if (count) outlet_anything(m_dataout_right, gensym("info"), count*20+2, info); else outlet_float(m_dataout_right, 0); + if ( !m_taboutput ){ for( size_t i = 0 ; i < m_contours.size() ; i++ ) { if (!m_contours[i].empty() && m_contours[i].size() > 2) { |