void
rectangle(InputOutputArray img, Point pt1, Point pt2, const Scalar& color, int thickness=1, int lineType=LINE_8, int shift=0 )
void
rectangle(Mat& img, Rect rec, const Scalar& color, int thickness=1, int lineType=LINE_8, int shift=0 )
Parameters:
-
img – Image.
-
pt1 – Vertex of the rectangle.
-
pt2 – Vertex of the rectangle opposite to pt1 .
-
rec – Alternative specification of the drawn rectangle.
-
color – Rectangle color or brightness (grayscale image). (Scalar 颜色BGR)
-
thickness – Thickness of lines that make up the rectangle. Negative values, like CV_FILLED , mean that the function has to draw a filled rectangle.
-
lineType – Type of the line. See the description.
-
shift – Number of fractional bits in the point coordinates.
void line(InputOutputArray
img, Point
pt1, Point
pt2, const Scalar&
color, int
thickness=1, int
lineType=LINE_8, int
shift=0 )
阅读(1232) | 评论(0) | 转发(0) |