Skip to content

A crate to perform convolution operations with stride on either image data or n-dimensional arrays

Notifications You must be signed in to change notification settings

anshap1719/convolve-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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:

[dependencies]
convolve-image = "0.1.0"

About

A crate to perform convolution operations with stride on either image data or n-dimensional arrays

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages