Remove contours hierarchy
This commit is contained in:
parent
41e1ec9f2e
commit
77d16e098a
1 changed files with 1 additions and 2 deletions
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue