opencv利用矩形框選中某一區域並保存爲新圖片

1、基本原理 Mat img= imread(image); Rect rect(50,20, 200, 50); Mat ROI = img(rect); imshow("ROI_WIN",ROI); - 其中:Rect的函數定義爲: Rect(_Tp _x, _Tp _y, _Tp _width, _Tp _height); _Tp _x:表示矩形左上角頂點的x座標; _Tp _y:表示矩形左
相關文章
相關標籤/搜索