A little toy implementation of the canny-edge-detection algorithm in WPGU.
cargo run --release -- <path to image file> <path to output directory>
# Example: Applies edge detection to the given image and saves each change after each step to the given output directory.
cargo run --release -- /tmp/image.png /tmp/output_dir
Here's an example which images will be generated.
- Canny algo: https://justin-liang.com/tutorials/canny/
- How to create gray scale: https://www.baeldung.com/cs/convert-rgb-to-grayscale