limap.base.functions module
- limap.base.functions.get_all_lines_2d(all_2d_segs)
Convert
np.array
representations of 2D line segments to dict ofLine2d
.
- limap.base.functions.get_all_lines_3d(all_3d_segs)
Convert
np.array
representations of 3D line segments to dict ofLine3d
.
- limap.base.functions.get_invert_idmap_from_linetracks(all_lines_2d, linetracks)
Get the mapping from a 2D line segment (identified by an image and its line ID) to the index of its associated linetrack.
- Parameters:
- Returns:
Map image ID to list of the associated line track indices for each 2D line, -1 if not associated to any track.
- Return type:
dict[int -> list[int]]