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

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);
主站蜘蛛池模板: 中西区| 阿克苏市| 太白县| 河东区| 深水埗区| 安龙县| 宁乡县| 永平县| 齐河县| 手游| 深圳市| 宁城县| 新邵县| 达拉特旗| 湘潭市| 合江县| 双柏县| 宿州市| 通许县| 时尚| 内乡县| 大邑县| 乌兰浩特市| 东港市| 娱乐| 临城县| 织金县| 荃湾区| 平陆县| 噶尔县| 望江县| 达孜县| 荃湾区| 望都县| 修武县| 通榆县| 宁城县| 贞丰县| 桐庐县| 徐闻县| 鲁甸县|