Function mlx9064x::calculations::raw_pixels_to_ir_data [−][src]
pub fn raw_pixels_to_ir_data<'a, Clb, Px>(
calibration: &'a Clb,
emissivity: f32,
resolution_correction: f32,
pixel_data: &[u8],
ram: RamData,
subpage: Subpage,
access_pattern: AccessPattern,
valid_pixels: &mut Px,
destination: &mut [f32]
) -> f32 where
Clb: CalibrationData<'a>,
Px: Iterator<Item = bool>,
Expand description
Calculate a measurement of raw IR data for all pixels
This function applies per_pixel_v_ir
to each pixel belonging to the given subpage, writing
the IR measurements to the destination
argument. Thermal gradient compensation is also
applied if supported by the camera. The ambient temperature is returned as well. The units of
the IR data are not specified in the data sheet, while the ambient temperature is in degrees
Celsius.
The slices pixel_data
and destination
cover all of the camera pixels, but only the pixels
belonging to subpage
are calculated. Determining which pixels belong to which subpage is done
with the valid_pixels
iterator (see MelexisCamera::pixels_in_subpage
for more details).
The datasheets suggest that stopping at this step (instead of continuing on with calculating the temperatures of each pixel) can be appropriate if an “image” is all that is required (with an example use case of machine vision).