帮酷
List<MatOfPoint> contours;//already initialized somewhere in your code
List<MatOfPoint2f> newContours = new ArrayList<>();
for(MatOfPoint point : contours) {
MatOfPoint2f newPoint = new MatOfPoint2f(point.toArray());
newContours.add(newPoint);
}
如何从列表 <MatOfPoint> 转换为 MatOfPoint2f?
最新推荐文章于 2023-08-23 20:14:17 发布
