1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
#![cfg_attr(all(test, feature = "unstable"), feature(test))] #![warn(missing_docs)] //! An implementation of the Canny edge detection algorithm in Rust. The base for //! many computer vision applications. //! //! # Finding the edges in an image //! //! ``` //! extern crate edge_detection; //! extern crate image; //! //! 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 //! ); //! ``` //! //! See the `canny` function for details on what each parameter means. extern crate image; extern crate rayon; mod edge; pub use edge::*;