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);
推薦閱讀
- 公有云容器化指南:騰訊云TKE實戰與應用
- 程序員修煉之道:從小工到專家
- Live Longer with AI
- 算法與數據中臺:基于Google、Facebook與微博實踐
- Mockito Cookbook
- Dependency Injection with AngularJS
- 數據挖掘原理與SPSS Clementine應用寶典
- ZeroMQ
- 從0到1:JavaScript 快速上手
- SQL Server 2012數據庫管理教程
- TextMate How-to
- Mastering LOB Development for Silverlight 5:A Case Study in Action
- MySQL技術內幕:SQL編程
- Visual Studio 2013 and .NET 4.5 Expert Cookbook
- 中國云存儲發展報告