OwnedFrame
pub struct OwnedFrame
A thermal frame this program owns.
Produced by crate::Camera::acquire_frame and by
Frame::to_owned. Freed when dropped; there is no manual free.
OwnedFrame — methods
pub fn as_frame(&self) -> Frame<'_>
Borrow this frame.
The returned view is tied to &self, so anything read through it,
pixels included, cannot outlive the OwnedFrame.
pub fn info(&self) -> Result<FrameInfo>
Read the frame's metadata.
Errors
As Frame::info.
pub fn data(&self) -> Result<&[i16]>
Borrow the frame's pixels, in the SDK's internal format.
The slice lives as long as this OwnedFrame does, which, unlike
the callback path, is entirely under your control. Samples, not
temperatures, and the unmeasured sentinel lives here; see
Frame::data.
Errors
As Frame::data.
pub fn temperatures(&self) -> Result<Vec<f32>>
The frame's pixels as temperatures in the SDK's temperature unit, converted by the SDK.
f32::NAN for a pixel the SDK could not measure; see
Frame::temperatures for why that matters.
Errors
pub fn temperature_at(&self, x: u32, y: u32) -> Result<f32>
The temperature at one pixel, in the SDK's temperature unit.
Errors
pub fn is_measurement(&self) -> Result<bool>
Whether this frame is a measurement of the scene.
Errors
As Frame::info.