openalea.eartrack.eartrack.derivate

openalea.eartrack.eartrack.derivate(route)[source]

Perform discrete derivative on a curve

Perform discrete derivative on a route in order to analyse variation of directions :param route: (list of list of 2 int) list of all the pixels to follow a route on image :return: diff: (list of int) values in [-1, 0, 1] representing the variation of the route

x: (list of int) x original position of each diff value y: (list of int) y original position of each diff value