2 releases
0.1.1 | Mar 12, 2019 |
---|---|
0.1.0 | Mar 11, 2019 |
#103 in #edge
800KB
85 lines
edgy
A simple program to apply the Sobel edge detection operator to any given image or directory of images.
Installation
The process to install is pretty standard:
$ cargo install edgy
Usage
edgy 1.0
Daniel G. <dan.greco@live.com>
Applys Sobel edge detection to given image.
USAGE:
edgy [FLAGS] [OPTIONS] --input <FILE> --output <FILE>
FLAGS:
-m, --multiple Uses input/output as directories; applies sobel operator to every image in that directory.
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-b, --blur <FACTOR> Increases blur factor by <FACTOR>
-i, --input <FILE> Sets the input image file to use
-o, --output <FILE> Sets the output image file to use
Examples
Performance
Running this implementation on the same image but scaled down to various sizes, I charted the time it took to produce the final image (in milliseconds).
Contributions
If you want to improve anything, go ahead and open up a pull request.
Dependencies
~7.5MB
~119K SLoC