Line track
- class limap.base.LineTrack
Associated line track across multi-view.
- GetSortedImageIds(self: _limap._base.LineTrack) List[int]
- Returns:
Sorted (and deduplicated) list of the associated image IDs
- Return type:
list[int]
- HasImage(self: _limap._base.LineTrack, image_id: int) bool
Check whether the 3D line has a 2D support from a certain image.
- Parameters:
image_id (int) – The image ID
- Returns:
True if there is a supporting 2D line from this image
- Return type:
bool
- Read(self: _limap._base.LineTrack, filename: str) None
Read the line track information from a file.
- Parameters:
filename (str) – The file to read from
- Write(self: _limap._base.LineTrack, filename: str) None
Write the line track information to a file.
- Parameters:
filename (str) – The file to write to
- __init__(*args, **kwargs)
Overloaded function.
__init__(self: _limap._base.LineTrack) -> None
Default constructor
__init__(self: _limap._base.LineTrack, track: _limap._base.LineTrack) -> None
Copy constructor
__init__(self: _limap._base.LineTrack, line: _limap._base.Line3d, image_id_list: List[int], line_id_list: List[int], line2d_list: List[_limap._base.Line2d]) -> None
__init__(self: _limap._base.LineTrack, dict: dict) -> None
Constructor from a Python dict
- as_dict(self: _limap._base.LineTrack) dict
- Returns:
Python dict representation of this
LineTrack
- Return type:
dict
- count_images(self: _limap._base.LineTrack) int
- Returns:
Number of unique associated images
- Return type:
int
- count_lines(self: _limap._base.LineTrack) int
- Returns:
The number of supporting 2D lines
- Return type:
int
- projection(self: _limap._base.LineTrack, views: List[_limap._base.CameraView]) List[_limap._base.Line2d]
Project the 3D line to 2D using a list of
CameraView
.- Parameters:
views (list[
CameraView
]) – Camera views to project the 3D line- Returns:
The 2D projection segments of the 3D line
- Return type:
list[
Line2d
]
- property active
bool, active status for recursive merging
- property image_id_list
list[int], the associated image IDs
- property line_id_list
list[int], IDs of supporting 2D lines within each image