summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbsdnoobz <nash@bsd-noobz.com>2012-12-15 20:36:34 +0700
committerbsdnoobz <nash@bsd-noobz.com>2012-12-15 20:36:34 +0700
commit656acb1727d8d06cc38b6f1ea74c2408fa06762c (patch)
treeaa5a13eda05c463a6fe78cd0553d93a02dabbcc2
parent8169adb48def4bb7b0df3fd93eb7129bb36977cd (diff)
Using the simplied version of cv::findContours()
-rw-r--r--pupil-detect.cpp3
1 files changed, 1 insertions, 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<std::vector<cv::Point> > contours;
- std::vector<cv::Vec4i> 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);