Skip to main content

detections_to_node_hints

Function detections_to_node_hints 

Source
pub fn detections_to_node_hints(
    dets: &[Detection],
    out: &mut [NodeHint],
) -> usize
Expand description

Map detections to Tensor10D-style node hints (D1/D2).

  • x,y = box centre in normalised 0..1 space (u16 / 65535)
  • z = 0 (image-plane stub)
  • t = frame_index as f32
  • sigma = class×score map (detection_to_sigma) for spectral paint

Writes at most out.len() hints; returns count written.