From 6f991ea51bbcebc0cf3985a818b42e52452ed43b Mon Sep 17 00:00:00 2001 From: Antoine Villeret Date: Tue, 15 Jan 2013 18:22:01 +0000 Subject: fix info outlet svn path=/trunk/externals/pix_opencv/; revision=16872 --- pix_opencv_contours.cc | 3 +-- 1 file changed, 1 insertion(+), 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) { -- cgit v1.2.1