openalea.eartrack.eartrack.get_distances¶
-
openalea.eartrack.eartrack.
get_distances
(route, distance_transform_img)[source]¶ Get the distances transform values along a route
‘route’ are coordinates in the ‘distance_transform_img’ shape. :param route: (list of list of 2 int) list of all the pixels to follow a route on image :param distance_transform_img: (numpy 2D array of uint8) binary image transformed in distances :return: (list of int) representing the distances values all along the route