Crate libstacker

Source
Expand description

This library contains multi-threaded image stacking functions, based on OpenCV https://crates.io/crates/opencv and Rayon https://crates.io/crates/rayon.

Copyright (c) 2021, 2025 Eadf lacklustr@protonmail.com. License: MIT/Apache 2.0

The is a port of code written by Mathias Sundholm. Copyright (c) 2021 https://github.com/maitek/image_stacking License: MIT

Read more about image alignment with OpenCV here: https://learnopencv.com/image-alignment-ecc-in-opencv-c-python

Re-exports§

pub use opencv;

Modules§

prelude
utils

Structs§

EccMatchParameters
Structure containing the opencv parameters needed to calculate ecc_match()
KeyPointMatchParameters
Parameters for keypoint matching and homography estimation.

Enums§

MotionType
StackerError

Functions§

ecc_match
Aligns and stacks images using OpenCV’s Enhanced Correlation Coefficient (ECC) algorithm.
ecc_match_no_scaling
ecc_match_scaling_down
keypoint_match
Aligns and combines multiple images by matching keypoints, with optional scaling for performance.
sharpness_modified_laplacian
Detect sharpness of an image https://stackoverflow.com/a/7768918 OpenCV port of ‘LAPM’ algorithm (Nayar89)
sharpness_normalized_gray_level_variance
Detect sharpness of an image https://stackoverflow.com/a/7768918 OpenCV port of ‘GLVN’ algorithm (Santos97)
sharpness_tenengrad
Detect sharpness of an image using Tenengrad algorithm (Krotkov86) https://stackoverflow.com/a/7768918
sharpness_variance_of_laplacian
Detect sharpness of an image https://stackoverflow.com/a/7768918 OpenCV port of ‘LAPV’ algorithm (Pech2000)