| Crates.io | depth-map-processor |
| lib.rs | depth-map-processor |
| version | 0.1.0 |
| created_at | 2026-01-05 17:11:42.11075+00 |
| updated_at | 2026-01-05 17:11:42.11075+00 |
| description | Normalize 16-bit PNG depth maps to 8-bit grayscale with optional Turbo visualization. |
| homepage | https://github.com/RustedBytes/depth-map-processor |
| repository | https://github.com/RustedBytes/depth-map-processor |
| max_upload_size | |
| id | 2024260 |
| size | 41,272 |
Normalize 16-bit PNG depth maps to 8-bit grayscale with an optional Turbo colormap visualization.
cargo install depth-map-processor
depth-map-processor --input depth_16bit.png --output depth_gray.png --viz depth_turbo.png
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(())
}