aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Villeret <avilleret@users.sourceforge.net>2013-01-15 18:22:01 +0000
committerAntoine Villeret <avilleret@users.sourceforge.net>2013-01-15 18:22:01 +0000
commit6f991ea51bbcebc0cf3985a818b42e52452ed43b (patch)
treef9322d2fcc31caf902b5e6410c44b487729b5402
parentd49730bca5bd35af05638c7a3b00a697c6cd880a (diff)
fix info outlet
svn path=/trunk/externals/pix_opencv/; revision=16872
-rw-r--r--pix_opencv_contours.cc3
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) {