android java opencv 2.4 convexhull convexdefect
问题 Open-CV 2.4 Android-Java: i have searched for contours (list of MatofPoint) like this: Imgproc.findContours(roi_mat, contours, hierarchy, cfg.retMode, cfg.apxMode); and then the convexhull (has to be a list of MatofInt ) for (int k=0; k < contours.size(); k++){ Imgproc.convexHull(contours.get(k), hull.get(k)); } The convexhull wants a MatofInt but the drawcontours wants a MatofPoint.. So what to do? Thx in advance.. Edit : @OpenCV4Android for (int k=0; k < contours.size(); k++){ Imgproc