about MatOfPoint2f
opencv4android 2.4.4
befort i use Imgproc.approxPolyDP, I want to convert Mat to MatOfPoint2f;
Mat initialImg = Highgui.imread("/sdcard/card.jpg", 0);
MatOfPoint2f matOfPoint2f=new MatOfPoint2f(initialImg);
then I got the error:
03-20 10:35:57.825: E/AndroidRuntime(25073): java.lang.IllegalArgumentException: Incomatible Mat The error line is:
MatOfPoint2f matOfPoint2f=new MatOfPoint2f(initialImg);