pingwyn.curves_to_profiles
- pingwyn.curves_to_profiles(curves)
Smartly convert individual curves to one or more line profiles if they lay along the same line. If three or more curves follow a linear line, they become part of one profile. If multiple lines are found, multiple profiles are returned. Note: this function might not use every curve it is provided. If you want to convert all curves into a single profile, see pingwyn.curves_to_profile instead.
- Parameters:
curves (list or tuple of pingwyn.Curve) – A List or Tuple containing consequtive Curves that should be converted into line profiles.
- Returns:
A List of matched Profiles. Can be empty if no curves match any profile (i.e. individual points).
- Return type:
list of pingwyn.Profile
See also