https://github.com/anshap1719/convolve-image
A crate to perform convolution operations with stride on either image data or n-dimensional arrays
https://github.com/anshap1719/convolve-image
convolution image-processing rust
Last synced: 4 months ago
JSON representation
A crate to perform convolution operations with stride on either image data or n-dimensional arrays
- Host: GitHub
- URL: https://github.com/anshap1719/convolve-image
- Owner: anshap1719
- Created: 2024-04-09T15:10:21.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-06-04T20:46:14.000Z (about 1 year ago)
- Last Synced: 2025-10-10T15:37:04.353Z (8 months ago)
- Topics: convolution, image-processing, rust
- Language: Rust
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image Convolution Using Separable Kernel
This project provides an implementation convolution on images using separable kernels of arbitrary size. The library is aimed to provide a fast implementation with 0 dependencies other than `image-rs`.
## Usage
```rust
use convolve_image::convolve::Convolution;
use convolve_image::kernel::SeparableKernel;
fn convolve_image() {
let image = image::open("./sample.jpg").unwrap();
let image = image.to_rgb32f();
image.convolve(SeparableKernel::new([1. / 4., 1. / 2., 1. / 4.]), 1);
}
```
## Installation
To use this library in your Rust project, add the following to your `Cargo.toml` file:
```toml
[dependencies]
convolve-image = "0.1.0"