Skip to content

0.3.0 - 2024-03-04

Compare
Choose a tag to compare
@salam99823 salam99823 released this 06 Dec 03:36
· 90 commits to main since this release

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);