Trait thermal_camera::ThermalCamera[][src]

pub trait ThermalCamera {
    type Error;
    fn image(&mut self) -> Result<Array2<f32>, Self::Error>;

    fn temperature(&mut self) -> Option<f32> { ... }
}
Expand description

A trait for thermal cameras

Associated Types

Required methods

fn image(&mut self) -> Result<Array2<f32>, Self::Error>[src]

Return a two-dimensional array representing an image from the thermal camera. Currently the order of the pixels in the image is camera-dependent, but that’s probably going to change at some point.

Provided methods

fn temperature(&mut self) -> Option<f32>[src]

Get the temperature of the camera.

Many cameras have a built-in temperature sensor separate from the camera itself. If a device does not have a temperature sensor distinct from the camera, it should return None (which is what the default implementation does).

Implementors

impl<I2C> ThermalCamera for GridEye<I2C> where
    I2C: Transactional
[src]

type Error = I2C::Error

fn temperature(&mut self) -> Option<f32>[src]

fn image(&mut self) -> Result<Array2<f32>, Self::Error>[src]