A high performance Rust library for image convolution.
Apply horizontal Sobel filter: ```rust use imageconv::conv; use imageconv::{Filter, PaddingType}; use photonrs::native::{openimage, save_image};
fn main() { // Open an image let mut img = open_image("img.jpg").expect("No such file found");
// Create a filter
let sobelx: Vec
// Apply convolution
let imgconv = conv::convolution(&img, filter, 1, PaddingType::UNIFORM(1));
saveimage(imgconv, "imgconv.jpg");
}
```
|Original|
|--------|
||
|Sobel-X|Sobel-Y|
|-------|-------|
||
|
|Scharr-X|Scharr-Y|
|--------|--------|
|
|
|Laplacian|Median|
|-------|------|
||
|
|Gaussian|Denoise|
|---------|-------|
||
|