pub fn soft_nms(
detections: &mut Vec<Detection>,
sigma: f32,
score_threshold: f32,
)Expand description
Soft-NMS with Gaussian decay.
Instead of hard suppression, overlapping detections have their scores
decayed by score *= exp(-(iou² / sigma)). Detections whose score
falls below score_threshold are removed. The vector is modified in
place.