Struct mlx9064x::calculations::CommonIrData[][src]

pub struct CommonIrData {
    pub gain: f32,
    pub v_dd: f32,
    pub emissivity: f32,
    pub t_a: f32,
}
Expand description

Values that are common to all pixels in a given frame.

These values only need to be calculated once per frame and are then shared for the per-pixel calculations later.

Fields

gain: f32

The gain parameter ($K_{gain}$)

The raw data from each pixel is first multipled by the “gain parameter” before further processing. The “gain parameter” is calculated by dividing the value read from RAM by the “gain coefficient” that is calculated from the calibration EEPROM. The parameter is documented in section 12.2.2.4 in both datasheets, while the coefficient is documented in section 11.1.7 in both datasheets.

v_dd: f32

The pixel supply voltage ($V_{dd}$)

This is calculated using the delta_v and v_dd functions.

emissivity: f32

The emissivity ($\varepsilon$) to use when calculating the pixel temperatures.

The MLX90641 can store an emissivity value in EEPROM, but the MLX90640 does not and a value must be provided. The high-level API defaults to the value in EEPROM, or 1.0 if that is not available.

t_a: f32

The ambient temperature ($T_{a}$)

The name of this value is slightly inaccurate as it’s not so much the ambient temperature of the air surrounding the camera, but the temperature of the sensor itself, which is typically a few degrees warmer than the surrounding air. This value is calculated using ambient_temperature.

Implementations

Create a new CommonIrData.

The three base sources of data for the fields in this structure are the calibration EEPROM (calibration, emissivity in some cases, and half of resolution_correction), the device’s control register (the other half of resolution_correction), and the current frame’s RAM.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.