RegionSample
pub struct RegionSample
One pixel reading a region took on the most recent frame.
The profile along a line region, in order. Off unless the region
was built with Region::want_samples.
RegionSample — fields
value_c: Option<f32>
The temperature at this point, in the SDK's temperature unit
(Celsius unless crate::set_temperature_unit chose
Fahrenheit).
None where the pixel could not be measured: off the sensor,
or with no data behind it. The C carries NaN here; this is the
same fact at a type that cannot be used by accident in an
average.
position: f32
How far along the region this sample sits, 0 to 1.
pixel_x: u32
The column in the frame it came from.
pixel_y: u32
The row in the frame it came from.