1 | initial version |
you had a contour.convertTo(contour2f, CvType.CV_32FC2)
to go from CV_32S to CV_32F, so you need a approxCurve.convertTo(points, CvType.CV_32SC2)
to convert it back
2 | No.2 Revision |
you had a contour.convertTo(contour2f, CvType.CV_32FC2)
to go from CV_32S integer to CV_32F, float points, so you need a approxCurve.convertTo(points, CvType.CV_32SC2)
to convert it back