openalea.eartrack.eartrack.differential_cleaning

openalea.eartrack.eartrack.differential_cleaning(diff, x, y, max_space, min_length, min_height)[source]

Clean derivatives values

Analyse derivatives values to keep only the significant variations :param diff: (list of int) values in [-1, 0, 1] representing the variation of a route :param x: (list of int) x original position of each diff value :param y: (list of int) y original position of each diff value :param max_space: (int) max length (in pixels) of diff null to reckon that

the increase or decrease is no longer the same variation
Parameters:min_length – (int) minimum length of variation to reckon that the

variation is significant :param min_height: minimum height of variation to reckon that the variation is significant :return: (list of 3 int list) describing the diff values by parts of same variation [[begin, end, variation]]