I currently have a line of code
List<MatOfPoint> contours = new Vector<MatOfPoint>();
which I'm looking to convert to MatOfPoint2f so I can call the following function on it:
Imgproc.arcLength(contours, true);
However, I'm really not sure how to convert a List<MatOfPoint> to MatOfPoint2f, which is what contours has to be to work with arcLength. Can anyone show me how to do this?
 
    