Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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!