mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
rectangle function utilizes two cvpoints that are top-left, bottom-right
This commit is contained in:
parent
3ac7b0d7f5
commit
83b47c8a3b
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user