Crates.io | stellarsort_core |
lib.rs | stellarsort_core |
version | 0.1.0 |
source | src |
created_at | 2024-10-06 14:43:19.336143 |
updated_at | 2024-10-06 14:43:19.336143 |
description | A powerful Rust toolkit for analyzing and sorting astrophotography images. |
homepage | |
repository | https://github.com/chrischtel/stellarsort_core |
max_upload_size | |
id | 1399130 |
size | 10,231 |
A powerful Rust toolkit for analyzing and sorting astrophotography images.
StellarSort Core Library is a powerful Rust library specifically designed for analyzing and sorting astrophotography images. It provides tools for detecting blurry images, noise reduction, and other image quality analyses to assist astrophotographers in processing their images.
Add the stellarsort_core
library to your Cargo.toml
dependencies:
[dependencies]
stellarsort_core = "0.1.0"
Make sure to check the latest version on crates.io.
Import the library into your Rust project and utilize the available image analysis functions.
use stellarsort_core::detect_blur;
use image::DynamicImage;
fn main() {
// Load an image
let img = image::open("example_image.png").expect("Failed to load image");
// Define the blur threshold and sigma value for noise reduction
let blur_threshold = 100.0;
let denoise_sigma = 1.0;
// Check if the image is blurry
if detect_blur(img, blur_threshold, denoise_sigma, None) {
println!("The image is blurry.");
} else {
println!("The image is sharp.");
}
}
We are continuously working to improve StellarSort Core and add new features. Here is our current roadmap:
Done | Active | Planned |
---|---|---|
Detect Blurry Images | Parallel Processing | Machine Learning Integration |
Noise Reduction | Enhanced Testing | Gradient Removal |
Modular Design | Custom Filters |
If you have ideas or suggestions, feel free to contact us or create an issue on GitHub!
The full API documentation is available on docs.rs. Here are some of the main functions:
detect_blur
: Detects blurry images based on the variance of Laplacian results.calculate_variance
: Calculates the variance of pixel values in a grayscale image.calculate_noise
: Measures the noise level of an image by calculating the standard deviation.analyze_images_parallel
: Performs image analysis in parallel on a list of images.Contributions are welcome! If you find bugs or want to suggest new features:
git checkout -b feature/new-feature
)git commit -am 'Add new feature'
)git push origin feature/new-feature
)Please ensure that your contributions are well-documented and tested.
This project is licensed under the MIT License.
A big thank you to all the open-source projects and libraries that made this work possible:
Developed with ❤️ by yourusername