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

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);
主站蜘蛛池模板: 沭阳县| 龙岩市| 郯城县| 上思县| 大安市| 昌宁县| 故城县| 绵阳市| 延庆县| 马尔康县| 吴江市| 晴隆县| 兴和县| 柘荣县| 贵州省| 墨竹工卡县| 阳山县| 聂荣县| 荣昌县| 织金县| 韩城市| 濮阳市| 威信县| 资兴市| 新野县| 吉水县| 蛟河市| 横山县| 和龙市| 松原市| 南华县| 吉安市| 明星| 慈利县| 南平市| 枣强县| 洛宁县| 馆陶县| 壤塘县| 朝阳县| 永德县|