mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-25 01:41:40 +00:00
Fix contour grouping (#298)
Fixes bug where n+1 contours were needed to match a target of size n
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user