1 | initial version |
Try it like that :
MatOfInt mOi= new MatOfInt();
Imgproc.convexHull(matOfPoint, mOi);
int[] intlist = mOi.toArray();
List<Point> l = new ArrayList<Point>();
l.clear();
for (int i = 0; i < intlist.length; i++) {
l.add(matOfPoint.toList().get(mOi.toList().get(i)));
}