|
Re: Sort array in filterContours
FWIW you could also write that as
Code:
public static void sortContoursByArea(List<MatOfPoint> contours) {
Collections.sort(contours, Comparator.comparingDouble(Imgproc::contourArea));
}
__________________
WPILib
GRIP, RobotBuilder
|