Browse Source

Remove contours hierarchy

master
lhark 10 years ago
parent
commit
77d16e098a
  1. 3
      src/papillon.cpp

3
src/papillon.cpp

@ -153,9 +153,8 @@ class Traite_image {
cv::Mat temp; cv::Mat temp;
closed_thres.copyTo(temp); closed_thres.copyTo(temp);
vector< vector<cv::Point> > contours; vector< vector<cv::Point> > contours;
vector<cv::Vec4i> hierarchy;
//find contours of filtered image using openCV findContours function //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 vector is not empty, we have found some objects
if(contours.size()>0){ if(contours.size()>0){

Loading…
Cancel
Save