From 656acb1727d8d06cc38b6f1ea74c2408fa06762c Mon Sep 17 00:00:00 2001 From: bsdnoobz Date: Sat, 15 Dec 2012 20:36:34 +0700 Subject: Using the simplied version of cv::findContours() --- pupil-detect.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pupil-detect.cpp b/pupil-detect.cpp index e1dc7fe..6e51c94 100644 --- a/pupil-detect.cpp +++ b/pupil-detect.cpp @@ -23,8 +23,7 @@ int main(int argc, char** argv) // Find all contours std::vector > contours; - std::vector hierarchy; - cv::findContours(gray.clone(), contours, hierarchy, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_NONE); + cv::findContours(gray.clone(), contours, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_NONE); // Fill holes in each contour cv::drawContours(gray, contours, -1, CV_RGB(255,255,255), -1); -- cgit v1.2.3