0.3.0 - 2024-03-04
Changes
Changed
- Methods
march_edges
,translate_vec
are provided as associated functions
(faee752).
Migration guide
Definition of edges
.
let edges = Edges::from(&image);
About march_edges
If you use Edges::march_edges
like there:
let objects = edges.march_edges(&data, rows, cols, translate);
You must replace it with this:
let objects = Edges::march_edges(&data, rows, cols, translate);
About translate_vec
You must replace call to translate_vec
like there:
let vec: Vec<Vec2> = Vec::new();
// Before:
let translate_vec = edges.translated_vec(vec, rows, cols);
// After:
let translated_vec = Edges::translate_vec(vec, rows, cols);