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

asked 2016-08-10 02:55:06 -0600

elish gravatar image

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!

edit retag flag offensive close merge delete