Files
ccvl/examples/canny.rs
T
2026-10-28 19:42:42 +00:00

12 lines
227 B
Rust

mod common;
use ccvl::filter;
use ccvl::image;
fn main() -> std::process::ExitCode {
common::process_image(|img| {
let greyscale = img.map(|p| image::Luminance::from(p));
filter::canny(greyscale).map(|p| p.into())
})
}