Crate edge_detection

Source
Expand description

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

§Finding the edges in an image

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

See the canny function for details on what each parameter means.

Structs§

  • The result of a computation.
  • The computed result for a single pixel.

Functions§

  • Computes the canny edges of an image.