itasc.tracking_ultrack.extend¶
Functions
|
Extend a track to the adjacent frame using ultrack |
|
Ranked extend candidates at the adjacent frame, best-first, for a gallery. |
Classes
|
|
|
Ranked extend shortlist for one direction, best-first, for a gallery. |
|
- class itasc.tracking_ultrack.extend.ExtendAssignment(cell_id, candidate_label, candidate_partition, mask_2d, bbox, weight)[source]¶
Bases:
object- Parameters:
- class itasc.tracking_ultrack.extend.ExtendResult(target_frame, candidate_label, candidate_partition, mask_2d, bbox, weight, assignments=())[source]¶
Bases:
object- Parameters:
- assignments: tuple[ExtendAssignment, ...] = ()¶
- class itasc.tracking_ultrack.extend.ExtendCandidates(target_frame, assignments=())[source]¶
Bases:
objectRanked extend shortlist for one direction, best-first, for a gallery.
target_frameis the adjacent frame the candidates live on (one step indirectionfrom the source);assignmentscarries each candidate’s full-frame mask, bbox and link weight so the UI can render clickable thumbnails.- Parameters:
target_frame (int)
assignments (tuple[ExtendAssignment, ...])
- assignments: tuple[ExtendAssignment, ...] = ()¶
- itasc.tracking_ultrack.extend.extend_track_from_db(*, source_id, source_frame, direction, tracked_labels, db_path)[source]¶
Extend a track to the adjacent frame using ultrack
LinkDBcandidates.The source label’s mask is matched to an Ultrack node; the highest-weight
LinkDBedge into the adjacent frame picks the continuation. ReturnsNonewhen the DB is missing, the target frame is out of range, the source cell is absent, or the matched node has no link indirection(the caller should show a local status message and leave the frame untouched).
- itasc.tracking_ultrack.extend.list_extend_candidates(*, source_id, source_frame, direction, tracked_labels, db_path, limit=6)[source]¶
Ranked extend candidates at the adjacent frame, best-first, for a gallery.
Same matching as
extend_track_from_db(), but returns the whole ranked shortlist ofLinkDBcandidates (each with its full-frame mask) instead of only the winner, so the correction UI can render clickable candidate thumbnails. Returns an emptyExtendCandidates(still carryingtarget_frame) when there is no DB, target frame, matched node or link.