[][src]Struct libblackbody::tiff::TiffThermogram

pub struct TiffThermogram { /* fields omitted */ }

This is the struct and ThermogramTrait implementation for TIFF thermograms, through the use image-rs/tiff.

A 'TIFF thermogram' is basically any TIFF file with a channel of data, assumed to be thermographic. Currently the only supported data types are u16 and u32, which are converted to floats. U16 data is assumed to be centikelvin and converted to centigrades by subtracting 27315. U32 is assumed to actually be a f32 and transmuted to that data type.

While a file can be directly read with from_file, it is recommended to instead use the Thermogram::from_file instead. The latter detects what kind of file (TIFF, FLIR) it is dealing with, subsequently choosing the right reader for it. This way your application support different thermogram formats.

Implementations

impl TiffThermogram[src]

pub fn from_file(file_path: &Path) -> Option<Self>[src]

Read a FLIR file referenced by a path.

Arguments

  • file_path - The path to the FLIR file to read.

Returns

In case of success, Some<FlirThermogram> is returned, otherwise None. Values are in centigrades, as specified by the ThermogramTrait contract.

Trait Implementations

impl Clone for TiffThermogram[src]

impl Debug for TiffThermogram[src]

impl ThermogramTrait for TiffThermogram[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.