Fix contour grouping (#298)

Fixes bug where n+1 contours were needed to match a target of size n
This commit is contained in:
Matt
2021-10-05 12:16:50 -04:00
committed by GitHub
parent 243f06da2d
commit f922466d41

View File

@@ -46,7 +46,7 @@ public class GroupContoursPipe
} else {
int groupingCount = params.getGroup().count;
if (input.size() > groupingCount) {
if (input.size() >= groupingCount) {
input.sort(Contour.SortByMomentsX);
// also why reverse? shouldn't the sort comparator just get reversed?
// TODO: Matt, see this