vuba.Eccentricity

class vuba.Eccentricity(min=None, max=None)[source]

Filter contours by eccentricity based on a lower or upper limit, or both.

Parameters
  • min (int or float) – Lower eccentricity limit to filter contours.

  • max (int or float) – Upper eccentricity limit to filter contours.

Returns

filter – Class object with __call__ method that filters contours based on the pre-defined eccentricity limits provided at initiation.

Return type

Eccentricity

__init__(min=None, max=None)[source]

Methods

__init__([min, max])