|
#5
|
||||
|
||||
|
Re: Sort array in filterContours
That's called a method reference.
This article explains it quite well Also, you don't even need a special method for sorting a list. The List interface defines a method "sort(Comparator)" that you can use inline like Code:
contours.sort(Comparator.comparingDouble(Imgproc::contourArea)); |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|