Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 1117

Convert org.opencv.core.Point[] pointsTmp to MatOfPoint2f

$
0
0
Hi, I need to convert an org.opencv.core.Point[] array to a MatOfPoint2f array, And i can not find a way to do it. This is my org.opencv.core.Point[] array named pointsTmp org.opencv.core.Point[] pointsTmp = tmpPts.toArray(); for (org.opencv.core.Point p : pointsNext) { if(byteArray[count]==1){ Core.circle(tmp2, p, 8, circleColor); pointsTmp[i]=p; i++; } count++; } can any one help me convert it to a MatOfPoint2f array type? Tanks in advance!

Viewing all articles
Browse latest Browse all 1117

Trending Articles