depth-map-processor

Crates.iodepth-map-processor
lib.rsdepth-map-processor
version0.1.0
created_at2026-01-05 17:11:42.11075+00
updated_at2026-01-05 17:11:42.11075+00
descriptionNormalize 16-bit PNG depth maps to 8-bit grayscale with optional Turbo visualization.
homepagehttps://github.com/RustedBytes/depth-map-processor
repositoryhttps://github.com/RustedBytes/depth-map-processor
max_upload_size
id2024260
size41,272
dev-team (github:iron:dev-team)

documentation

README

depth-map-processor

Normalize 16-bit PNG depth maps to 8-bit grayscale with an optional Turbo colormap visualization.

Install

cargo install depth-map-processor

CLI Usage

depth-map-processor --input depth_16bit.png --output depth_gray.png --viz depth_turbo.png

Library Usage

use std::path::Path;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let stats = depth_map_processor::process_depth_map(
        Path::new("depth_16bit.png"),
        Path::new("depth_gray.png"),
        Some(Path::new("depth_turbo.png")),
    )?;

    println!("{}x{}", stats.width, stats.height);
    Ok(())
}

Output

  • Grayscale normalization uses min/max from the 16-bit input.
  • Visualization uses the Turbo colormap.
Commit count: 0

cargo fmt