Skip to content

add_overlaps has correct ancestor_id #259

Merged
JoOkuma merged 1 commit intomainfrom
fix-add-overlaps
Feb 11, 2026
Merged

add_overlaps has correct ancestor_id #259
JoOkuma merged 1 commit intomainfrom
fix-add-overlaps

Conversation

@TeunHuijben
Copy link
Contributor

... when nodeDB.pickle only has mask and bbox

In Ultrack, the NodeDB.pickle always contains the entire Node, including the node_id, so this is not a problem.

However, in our "manual" cases, the pickle only contains the mask and bbox. In this case, the _add_overlaps gives the wrong ancestor_id (-1), because the pickle doesn't contain the node_id.

This PR makes a slight change to _add_overlaps to ensure the ancestor_id in overlapDB is correct.

The new test tests this by making a minimal node class in which the pickle doesn't contain the node_id

@TeunHuijben TeunHuijben marked this pull request as ready for review February 10, 2026 22:20
@TeunHuijben TeunHuijben requested a review from JoOkuma February 10, 2026 22:20
Copy link
Member

@JoOkuma JoOkuma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TeunHuijben LGTM! Thanks for adding the test case.

@JoOkuma JoOkuma merged commit 9a7084d into main Feb 11, 2026
7 checks passed
@JoOkuma JoOkuma deleted the fix-add-overlaps branch February 11, 2026 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants