【发布时间】:2013-03-01 03:25:17
【问题描述】:
我正在使用 OpenCV 库将 matlab 代码转换为 C++。
谁能告诉我roipoly OpenCV 中等效的 matlab 函数?
或者如何使用 OpenCV 获得相同的功能?
BW = roipoly(I, c, r)
BW = roipoly(I, c, r) 返回由向量 c 和 r 描述的多边形指定的 ROI,它们分别指定每个顶点的列索引和行索引。 c 和 r 大小相同。
在我的例子中,我想从图像中提取 triangular roi,因此 c 和 r 的大小为 3x1。
谁能告诉我如何使用 OpenCV 在 C++ 中做到这一点?
【问题讨论】:
标签: matlab opencv image-processing computer-vision roi