OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Rust API referencev12.0

RegionBlob

pub struct RegionBlob

One connected hot area a RegionKind::BlobGroup region found on the most recent frame.

Coordinates

centre and size are in region coordinates (both axes normalised by the frame width, the same space Vec2 carries everywhere else), so centre.x * frame_width gives pixels and centre.y runs 0..0.75 on a 4:3 camera.

Identity

A blob is a single-frame observation and carries no id. The vector is rebuilt every frame and nothing in it is promised to be the same object as the entry at the same index last frame. Alarm on the blob-count signal, or on the region's own statistics, rather than on an individual blob.

RegionBlob — fields

centre: Vec2

Centre of the bounding box, not the centroid of the member pixels, and not where max_c was found.

size: Vec2

Bounding-box extents, inclusive of both edge pixels, so the narrowest blob possible is 1 / frame_width and never zero.

max_c: f32

Hottest single pixel in the blob, in the SDK's temperature unit (Celsius unless crate::set_temperature_unit chose Fahrenheit).

mean_c: f32

Unweighted mean over every member pixel, in the SDK's temperature unit. Note that threshold_c is by construction a floor under this.

pixel_count: u32

How many pixels are members: the number min_size_pixels was compared against, and what max_blob_size is a fraction of.

contour: Vec<Vec2>

The outline, or empty unless the region asked for BlobRenderMode::Contour.

A closed loop, thinned by smoothing and capped at contour_max_points. Only the outer boundary, so a blob with a cold hole in it yields one loop and the hole is invisible here. The winding direction is whatever the trace produced; do not build an inside test on it.