rectangle function utilizes two cvpoints that are top-left, bottom-right

This commit is contained in:
Yu Jiang Tham 2014-05-21 15:26:27 -07:00
parent 3ac7b0d7f5
commit 83b47c8a3b

View File

@ -605,7 +605,7 @@ Matrix::Rectangle(const Arguments& args) {
if(args[3]->IntegerValue())
thickness = args[3]->IntegerValue();
cv::rectangle(self->mat, cv::Point(x, y), cv::Point(width, height), color, thickness);
cv::rectangle(self->mat, cv::Point(x, y), cv::Point(x+width, y+height), color, thickness);
}
return scope.Close(v8::Null());