Trajectory Geometry Processing#

algo.geometry module

This module provides functions aimed at

snap_lines_to_connect

Accroche 2 traces d'une même collection.

decoupe_trace

Pas de topologie, uniquement la géométrie qu'on découpe

extend_extremity

Extend start point or end point

find_connection_candidate

Search for the closest intersection between the extension and an edge.

pull_point_to_other_tracks

Approcher les trajectoires entre elles.

snap_lines_to_connect#

snap_lines_to_connect(collection, tolerance=1, log_level='ERROR')[source]#

Accroche 2 traces d’une même collection.

Returns the closest edge that intersects an extension#

find_connection_candidate(network, edge, extension, side)[source]#

Search for the closest intersection between the extension and an edge.

Move the trajectories closer together#

../../_images/pull_point_to_other_tracks.png

Figure 1. On the left, the traces are relatively sparse. On the right, after applying the algorithm, the traces are more tightly clustered, making them easier to detect.#

pull_point_to_other_tracks(cutCollection, buffer_size=10, alpha=0.6)[source]#

Approcher les trajectoires entre elles. On remplace chaque point par le centre de gravité des points des trajectoires voisines) entre l’itération In et l’itération In+1, et voir si cela améliore plus de détection dans le résultat de In+1.

Parameters#

cutCollectionTYPE

DESCRIPTION.

buffer_sizeTYPE, optional

DESCRIPTION. The default is 10.

alphaTYPE, optional

DESCRIPTION. The default is 0.6.

Returns#

None.