libstacker 0.1.0

Image alignment and stacking functions based on OpenCV and Rayon
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use opencv::core::{Point, Vector};
use opencv::imgproc::{bounding_rect, min_area_rect};

fn main() {
    let contour = vec![
        Point::new(5, 5),
        Point::new(5, 15),
        Point::new(15, 15),
        Point::new(15, 5),
        Point::new(5, 5),
    ]
    .into_iter()
    .collect::<Vector<Point>>();
    dbg!(bounding_rect(&contour).unwrap());
    let t = min_area_rect(&contour).unwrap();
    dbg!(t);
}