[−][src]Struct libblackbody::tiff::TiffThermogram
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]
Trait Implementations
impl Clone for TiffThermogram
[src]
pub fn clone(&self) -> TiffThermogram
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TiffThermogram
[src]
impl ThermogramTrait for TiffThermogram
[src]
pub fn thermal(&self) -> &Array<f32, Ix2>
[src]
pub fn optical(&self) -> Option<&Array<u8, Ix3>>
[src]
pub fn identifier(&self) -> &str
[src]
pub fn path(&self) -> Option<&str>
[src]
pub fn render(
&self,
min_temp: f32,
max_temp: f32,
palette: [[f32; 3]; 256]
) -> Array<u8, Ix3>
[src]
&self,
min_temp: f32,
max_temp: f32,
palette: [[f32; 3]; 256]
) -> Array<u8, Ix3>
pub fn render_defaults(&self) -> Array<u8, Ix3>
[src]
pub fn export_thermal(&self, path: &PathBuf) -> Option<()>
[src]
pub fn save_render(
&self,
path: PathBuf,
min_temp: f32,
max_temp: f32,
palette: [[f32; 3]; 256]
) -> Option<()>
[src]
&self,
path: PathBuf,
min_temp: f32,
max_temp: f32,
palette: [[f32; 3]; 256]
) -> Option<()>
pub fn thermal_shape(&self) -> [usize; 2]
[src]
pub fn has_optical(&self) -> bool
[src]
pub fn min_temp(&self) -> f32
[src]
pub fn max_temp(&self) -> f32
[src]
pub fn normalized_minmax(&self) -> Array<f32, Ix2>
[src]
Auto Trait Implementations
impl RefUnwindSafe for TiffThermogram
[src]
impl Send for TiffThermogram
[src]
impl Sync for TiffThermogram
[src]
impl Unpin for TiffThermogram
[src]
impl UnwindSafe for TiffThermogram
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,