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

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);
主站蜘蛛池模板: 梁山县| 宁陕县| 平果县| 大兴区| 漾濞| 泸水县| 贵港市| 屏山县| 黄浦区| 秦安县| 瓦房店市| 灌阳县| 阿拉善右旗| 平果县| 沙河市| 通州市| 兰州市| 通州市| 丽江市| 东光县| 大兴区| 洱源县| 澜沧| 曲靖市| 兴安盟| 北川| 会宁县| 蓝山县| 巧家县| 德清县| 怀安县| 乐都县| 翁源县| 房产| 广安市| 威远县| 旬邑县| 静安区| 通化县| 康定县| 诏安县|