官术网_书友最值得收藏!

Rect object type

Rect is another important template class for defining 2D rectangles defined by the following parameters:

  • The coordinates of the upper-left corner

  • The width and height of a rectangle

The Rect template class can be used to define a region of interest (ROI) of an image, as follows:

Mat img=imread("lena.jpg");
Rect rect_roi(0,0,100,100);
Mat img_roi=img(r);
主站蜘蛛池模板: 台中县| 京山县| 闽侯县| 邮箱| 饶阳县| 奉节县| 嫩江县| 彭山县| 漳浦县| 高陵县| 万盛区| 海门市| 镇原县| 衡水市| 河南省| 曲松县| 九江市| 麻栗坡县| 宜昌市| 石泉县| 东丰县| 通山县| 科尔| 晋江市| 双牌县| 上思县| 工布江达县| 全椒县| 安康市| 桃园市| 体育| 原阳县| 漯河市| 团风县| 新干县| 黄浦区| 民乐县| 玉溪市| 永兴县| 万宁市| 临武县|