Use the contour hierarchy that's been passed

This commit is contained in:
Ollie Relph 2016-10-25 11:36:07 +01:00
parent 79da65d9a5
commit 74c8f4e347

View File

@ -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;
}