An open API service indexing awesome lists of open source software.

https://github.com/polyfloyd/edge-detection-rs

The Canny edge detection algorithm implemented in Rust
https://github.com/polyfloyd/edge-detection-rs

canny computer-vision

Last synced: 8 months ago
JSON representation

The Canny edge detection algorithm implemented in Rust

Awesome Lists containing this project

README

          

Edge Detection
==============
[![Crate](https://img.shields.io/crates/v/edge-detection.svg)](https://crates.io/crates/edge-detection)
[![Documentation](https://docs.rs/edge-detection/badge.svg)](https://docs.rs/edge-detection/)

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

```rust
let source_image = image::open("testdata/line-simple.png")
.expect("failed to read image");

let detection = edge_detection::canny(
source_image,
1.2, // sigma
0.2, // strong threshold
0.01, // weak threshold
);
```

![alt tag](https://raw.githubusercontent.com/polyfloyd/edge-detection-rs/master/media/demo-circle.png "Circle")

![alt tag](https://raw.githubusercontent.com/polyfloyd/edge-detection-rs/master/media/demo-peppers.png "Peppers")