// MatOfPoint to MatOfPoint2f
MatOfPoint src;
// initialize src
MatOfPoint2f dst = new MatOfPoint2f();
src.convertTo(dst, CvType.CV_32F);
// MatOfPoint2f to MatOfPoint
MatOfPoint2f src;
// initialize src
MatOfPoint dst= new MatOfPoint();
src.convertTo(dst,CvType.CV_32S);
OpenCV Java API中 MatOfPoint MatOfPoint2f 互转
最新推荐文章于 2024-04-23 10:37:06 发布