Crates.io | ser-io |
lib.rs | ser-io |
version | 0.3.0 |
source | src |
created_at | 2021-09-25 22:59:31.345277 |
updated_at | 2024-04-01 19:10:09.296072 |
description | Library for reading SER files used in astrophotography |
homepage | |
repository | https://github.com/andygrove/ser-io |
max_upload_size | |
id | 456332 |
size | 23,695 |
Rust crate for reading SER files used in astrophotography.
let ser = SerFile::open(filename)?;
println!("Image size: {} x {}", ser.image_width, ser.image_height);
println!("Frame count: {}", ser.frame_count);
println!("Frame size: {}", ser.image_frame_size);
println!("Bytes per pixel: {}", ser.bytes_per_pixel);
println!("Bayer: {:?}", ser.bayer);
println!("Endianness: {:?}", ser.endianness);
for i in 0..ser.frame_count {
let bytes = ser.read_frame(i)?;
// do processing ...
}
$ cargo run --example view-ser ~/Documents/2021-09-20-0323_1-CapObj.SER
Image size: 4144 x 2822
Frame count: 100
Frame size: 23388736
Bytes per pixel: 2
Bayer: RGGB
Endianness: LittleEndian