This project implements an A-Trous wavelet transform to reduce noise in astronomical images.
- Takes an astronomical image as input.
- Applies a multi-scale noise reduction process using A-Trous wavelet transform.
- Outputs a noise-reduced version of the image.
- Rust: Make sure you have Rust installed on your system. You can download it here.
- Image: You need an astronomical image in a supported format (e.g.,
.jpg,.png) as input.
-
Prepare Your Image:
- Use an astronomical image (e.g.,
m33-noise-lum.jpg). - Move the image to the root directory of this project.
- Use an astronomical image (e.g.,
-
Reference the Image in
main.rs: Insrc/main.rs, update the file name in theimage::open()function to match your input file name:fn main() { // Open our noisy image let image = image::open("m33-noise-lum.jpg").unwrap(); }
-
Run the Program: Open a terminal in the root directory of the project and execute:
cargo run --release
After the program finishes, a new file noise-reduced.jpg will be created in the root directory. This file contains the noise-reduced version of your input image.