Crate glf

Source
Expand description

§Overview

This crate provides a native rust implementation of the code required to read the Tritech GLF files.

This crate makes extensive use of the Rust Image crate, using the ImageBuffer<Luma<u8>, Vec<u8>> as it’s main type for holding the image data.

§Example usage

use std::path::Path;
use glf::GLF;

let glf = GLF::new(Path::new("./pytritech_testdata/test_tritech.glf")).unwrap();
println!("GLF Image 0: {}", glf.images[0].header.time);
let img = glf.extract_image(1).unwrap();
img.save("test.png").unwrap();

Structs§

CIHeader
GLF
ImageRecord
The image record holds all the information on a single frame / image from the sonar, including the starting position in the byte array for this image.
StatusRecord
The Status Record. Holds information on the status of the sonar at this particular time.

Functions§

epoch_gem
Return the epoch of the Tritech Gemini in UTC - not the same as the Linux (or any other) time epoch.