Merge pull request #135 from ytham/master

rectangle function utilizes two cvpoints that are top-left, bottom-right
This commit is contained in:
Peter Braden 2014-06-16 09:34:27 +02:00
commit 689a67570d

View File

@ -614,7 +614,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());