- Building Computer Vision Projects with OpenCV 4 and C++
- David Millán Escrivá Prateek Joshi Vinícius G. Mendon?a Roy Shilkrot
- 57字
- 2021-07-02 12:28:33
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);
推薦閱讀
- 企業數字化創新引擎:企業級PaaS平臺HZERO
- SQL Server入門經典
- Visual Studio 2015 Cookbook(Second Edition)
- Game Development with Swift
- Mastering Machine Learning with R(Second Edition)
- 3D計算機視覺:原理、算法及應用
- WS-BPEL 2.0 Beginner's Guide
- 數據庫原理與應用(Oracle版)
- The Game Jam Survival Guide
- 數據庫技術實用教程
- SQL優化最佳實踐:構建高效率Oracle數據庫的方法與技巧
- SQL Server 2012數據庫管理教程
- 數據庫原理與應用
- 區塊鏈+:落地場景與應用實戰
- MySQL數據庫實用教程