pub fn merge_regions(regions: &mut Vec<Region>, max_gap: u32)Expand description
Merge regions whose bounding boxes are within max_gap pixels of each other.
Uses greedy iterative merging. O(n²) per pass on region count, repeated until stable. Region count is typically small (<100) so this is fast.