Convert MatOfPoint to Point

asked 2018-04-12 09:49:41 -0600

Safa gravatar image

I have a List<matofpoint> and I need to convert it to List<point>, is there a direct method to do so?

edit retag flag offensive close merge delete


no, there isn't

but your List<MatOfPoint> is actually equivalent to a List<List<Point>> (a 2d array) , so what are you trying to do here, exactly ?

btw, MatOfPoint has a toArray() method

berak gravatar imageberak ( 2018-04-12 10:55:01 -0600 )edit

I'm trying to get the position (x,y) of all the points in a certain contour

Safa gravatar imageSafa ( 2018-04-12 11:23:37 -0600 )edit