887888889890891892893894895896
for (MatOfPoint c : contourMat) { result.add(new Contour(parent, c)); } if(sort){ Collections.sort(result, new ContourComparator()); } return result; }