optris::sdk::view::Detection
Bounding box + peak temperature for one detected blob.
Public attributes
x
float x = 0.0F
Horizontal centre of the box, 0..1 across the frame.
The centre, not a corner: association reconstructs the box as x +/- width / 2, so passing a top-left corner here skews every overlap test by half a box. Blob reports the same convention in Blob::center_x, so converting a Blob means copying center_x straight across. Any consistent normalized space works -- the tracker only ever compares detections against each other -- but TrackerConfig::max_distance and TrackerConfig::iou_threshold are tuned for 0..1 over a frame.
y
float y = 0.0F
Vertical centre of the box, 0..1 down the frame. Same convention as x.
width
float width = 0.0F
Box width as a fraction of the frame width.
Filtered in its own right, so the width a track reports smooths out instead of following the raw detection. It also feeds the IoU term in association, which means a blob whose apparent size jumps between frames is harder to match than one that only moves.
height
float height = 0.0F
Box height as a fraction of the frame height. Same as width.
temp
float temp = 0.0F
A temperature for the blob, in degrees Celsius.
Never filtered, and used for nothing but association, where a difference contributes |delta| / 50 * 0.1 to the match cost -- a 50 K mismatch is worth about 0.05 of normalized distance, enough to break a tie between two candidates in the same place and never enough to decide a match alone. Whether it is a peak or a mean is the caller's choice; just be consistent, because each frame's value is compared against the last one that matched.
contour
std::vector< ContourPoint > contour
Outline of the blob, carried rather than used.
The tracker never looks inside it: it copies the vector onto the matched track so TrackedDetection::contour can hand it back with a stable id attached. That copy happens for every matched track on every frame, so leave it empty when nothing draws outlines.