13 releases

0.2.6 May 27, 2022
0.2.5 Mar 26, 2020
0.2.4 Sep 24, 2019
0.2.3 Mar 21, 2019
0.2.0 Nov 10, 2017

#449 in Images

Download history 11/week @ 2024-07-14 24/week @ 2024-07-21 40/week @ 2024-07-28 6/week @ 2024-08-04 8/week @ 2024-08-11 1/week @ 2024-08-18 5/week @ 2024-08-25 8/week @ 2024-09-08 4/week @ 2024-09-15 72/week @ 2024-09-22 39/week @ 2024-09-29 2/week @ 2024-10-06 5/week @ 2024-10-13

119 downloads per month
Used in 2 crates

MIT license

650KB
537 lines

Edge Detection

Build Status Crate Documentation

An implementation of the Canny edge detection algorithm in Rust. The base for many computer vision applications.

let source_image = image::open("testdata/line-simple.png")
    .expect("failed to read image")
    .to_luma();
let detection = edge_detection::canny(
    source_image,
    1.2,  // sigma
    0.2,  // strong threshold
    0.01, // weak threshold
);

alt tag

alt tag

Dependencies

~6MB
~86K SLoC