1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//! Image-free recovery of regular projective grids from 2D point evidence.
//!
//! The ordinary workflow has one entry point and production defaults:
//!
//! ```rust
//! use nalgebra::Point2;
//! use projective_grid::{
//! detect_grid, DetectionRequest, Evidence, LatticeKind, LocalAxis,
//! OrientedFeature, PointFeature,
//! };
//!
//! let features = vec![
//! OrientedFeature::new(
//! PointFeature::new(0, Point2::new(0.0, 0.0)),
//! [LocalAxis::new(0.0, None), LocalAxis::new(1.57, None)],
//! ),
//! OrientedFeature::new(
//! PointFeature::new(1, Point2::new(10.0, 0.0)),
//! [LocalAxis::new(0.0, None), LocalAxis::new(1.57, None)],
//! ),
//! OrientedFeature::new(
//! PointFeature::new(2, Point2::new(10.0, 10.0)),
//! [LocalAxis::new(0.0, None), LocalAxis::new(1.57, None)],
//! ),
//! OrientedFeature::new(
//! PointFeature::new(3, Point2::new(0.0, 10.0)),
//! [LocalAxis::new(0.0, None), LocalAxis::new(1.57, None)],
//! ),
//! ];
//! let request = DetectionRequest::new(
//! LatticeKind::Square,
//! Evidence::Oriented2(&features),
//! );
//! let detection = detect_grid(request)?;
//! # assert_eq!(detection.grid().entries().len(), 4);
//! # Ok::<(), projective_grid::GridError>(())
//! ```
//!
//! Pattern-specific detector builders use the curated [`expert`] namespace.
//! Exact intermediate evidence is available through the opt-in `diagnostics`
//! feature.
pub use crate;
pub use crate;
pub use crate;
pub use crate;
pub use crate;
pub use crate;