Module cryiorust::tif [−][src]
Expand description
Tif frame reader.
Example usage:
use cryiorust::tif::Tif;
use cryiorust::frame::Frame;
use std::path::Path;
fn test_tif<P: AsRef<Path>>(path: P) {
let testfile = path;
let frame = Tif::read_file(testfile).unwrap();
assert_eq!(frame.dim1(), 1475, "dim1 != 1475");
assert_eq!(frame.dim2(), 1679, "dim2 != 1679");
assert_eq!(frame.sum(), 820029., "frame sum != 820029");
}
Structs
Main exported struct.