Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anshap1719/image-dwt
An implementation of the À Trous Discreet Wavelet Transform For Images Based On image-rs Crate
https://github.com/anshap1719/image-dwt
astronomical-algorithms astronomy image-processing rust wavelet-transform
Last synced: 2 months ago
JSON representation
An implementation of the À Trous Discreet Wavelet Transform For Images Based On image-rs Crate
- Host: GitHub
- URL: https://github.com/anshap1719/image-dwt
- Owner: anshap1719
- Created: 2024-03-18T14:39:33.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-09-15T13:06:57.000Z (4 months ago)
- Last Synced: 2024-10-31T11:35:22.142Z (3 months ago)
- Topics: astronomical-algorithms, astronomy, image-processing, rust, wavelet-transform
- Language: Rust
- Homepage:
- Size: 99.6 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# À Trous Discrete Wavelet Transform (DWT) for image-rs
This project provides an implementation of the À Trous Discrete Wavelet Transform (DWT) algorithm for images. The À
Trous DWT is a technique used for signal and image processing, particularly for tasks such as denoising, compression,
and feature extraction.## Overview
The À Trous DWT is a variation of the Discrete Wavelet Transform (DWT) that involves convolution with a filter bank. It
decomposes an image into different frequency sub-bands, allowing for analysis at multiple resolutions. This
implementation supports both forward and inverse transforms.## Why
I'm trying to build a suite of tools in rust that facilitate image processing, primarily deep sky images and data.
Wavelet transform and multi-resolution analysis is a very widely used transform in these cases.## Usage
```rust
fn remove_large_scale_structures() {
let image = image::open("./sample.jpg").unwrap();
let transform = ATrousTransform::new(&image, 6, B3SplineKernel);let recomposed = transform
.into_iter()
// Skip pixel scale 0 layer for noise removal
.skip(1)
// Only take layers where pixel scale is less than 2
.filter(|item| item.pixel_scale.is_some_and(|scale| scale < 2))
// Recompose processed layers into final image
.recompose_into_image(image.width() as usize, image.height() as usize);recomposed.to_rgb8().save("recombined.jpg").unwrap()
}
```## Installation
To use this library in your Rust project, add the following to your `Cargo.toml` file:
```toml
[dependencies]
image_dwt = "0.3.2"