Visualizer

A crate to visualize image instances of the image create. Requires the crate visualizer-cli to be installed globally.

Based on @hediet/visualization which also powers the Debug Visualizer extension for VS Code.

Installation

cargo install visualizer-cli cargo add image-visualizer

Example

Use the view! macro to view a visualization. The visualize function creates a visualization for the given image.

```rust use image::io::Reader as ImageReader; use image_visualizer::{VisualizableImage, visualizer::view};

fn main() -> std::io::Result<()> { let img = ImageReader::open("data/img.png")?.decode().unwrap(); view!(&img.visualize()); Ok(()) } ```

Screenshot