From 77d16e098a158949dead6f3f035476d06d10fbc2 Mon Sep 17 00:00:00 2001 From: lhark Date: Fri, 17 Jun 2016 03:44:13 +0200 Subject: [PATCH] Remove contours hierarchy --- src/papillon.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/papillon.cpp b/src/papillon.cpp index 441cbf9..906a7d2 100644 --- a/src/papillon.cpp +++ b/src/papillon.cpp @@ -153,9 +153,8 @@ class Traite_image { cv::Mat temp; closed_thres.copyTo(temp); vector< vector > contours; - vector hierarchy; //find contours of filtered image using openCV findContours function - cv::findContours(temp,contours,hierarchy,CV_RETR_EXTERNAL,CV_CHAIN_APPROX_SIMPLE );// retrieves external contours + cv::findContours(temp,contours,CV_RETR_EXTERNAL,CV_CHAIN_APPROX_SIMPLE );// retrieves external contours //if contours vector is not empty, we have found some objects if(contours.size()>0){