Function clusterize

Source
pub fn clusterize<R: Region + Copy>(
    data: &mut [Detection<R>],
    intersection_threshold: f32,
    score_threshold: f32,
    dest: &mut Vec<Detection<Target>>,
)
Expand description

Clusterize detection results based on intersection and score thresholds.

§Arguments

  • data – mutable slice of detection data to clusterize;
  • intersection_threshold – threshold for intersection over union;
  • score_threshold – threshold for detection score;
  • dest – destination vector to store clustered detections.