From 74c8f4e347ec8bc70bab95bbbde769c212594792 Mon Sep 17 00:00:00 2001 From: Ollie Relph Date: Tue, 25 Oct 2016 11:36:07 +0100 Subject: [PATCH] Use the contour hierarchy that's been passed --- src/Matrix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Matrix.cc b/src/Matrix.cc index 3d5db2d..170c913 100755 --- a/src/Matrix.cc +++ b/src/Matrix.cc @@ -1495,7 +1495,7 @@ NAN_METHOD(Matrix::DrawContour) { offset = cv::Point(_offset->Get(0)->ToNumber()->Value(), _offset->Get(1)->ToNumber()->Value()); } - cv::drawContours(self->mat, cont->contours, pos, color, thickness, lineType, cv::noArray(), maxLevel, offset); + cv::drawContours(self->mat, cont->contours, pos, color, thickness, lineType, cont->hierarchy, maxLevel, offset); return; }