5.3.4.116. Function threshold_ellipse_ratio

5.3.4.116.1. Function Documentation

uint32_t threshold_ellipse_ratio(RoI_basic_t *RoIs_basic, const RoI_elli_t *RoIs_elli, const size_t n_RoIs, const float min_ratio)

Filter (= select / keep) the RoIs ellipses that have a ratio (a/b) superior to \(min_ratio\).

Parameters
  • RoIs_basic – Basic features.

  • RoIs_elli – Ellispe features (including the a and b features).

  • n_RoIs – Number of connected-components (= number of RoIs).

  • min_ratio – Value that define if the RoI is kept or not.

Returns

The number of RoIs after the threshold.