Remove contours hierarchy

This commit is contained in:
lhark 2016-06-17 03:44:13 +02:00
parent 41e1ec9f2e
commit 77d16e098a

View file

@ -153,9 +153,8 @@ class Traite_image {
cv::Mat temp;
closed_thres.copyTo(temp);
vector< vector<cv::Point> > contours;
vector<cv::Vec4i> 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){