ser-io

Crates.ioser-io
lib.rsser-io
version0.3.0
sourcesrc
created_at2021-09-25 22:59:31.345277
updated_at2024-04-01 19:10:09.296072
descriptionLibrary for reading SER files used in astrophotography
homepage
repositoryhttps://github.com/andygrove/ser-io
max_upload_size
id456332
size23,695
Andy Grove (andygrove)

documentation

README

ser-io

crates.io

Rust crate for reading SER files used in astrophotography.

Usage

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 ...
}

Example

$ 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

Resources

Commit count: 11

cargo fmt