mastodon-sc / mastodon

Mastodon – a large-scale tracking and track-editing framework for large, multi-view images.
BSD 2-Clause "Simplified" License
66 stars 20 forks source link

TrackScheme windows fail to render graph with merging spots #187

Closed maarzt closed 1 year ago

maarzt commented 1 year ago

The TrackScheme windows fail to render a graph where two spots merge, like this:

    O
  /   \
 O     O
 |     |
 O     O
 |     |
 O     O
  \   /
    O

The BDV window renders the graph properly. But the normal TrackScheme, the Branch TrackScheme and the HierarchyTrackScheme fail to render the graph properly. Below is a screenshot that shows the problem. image

Here is a small mastodon project with the diamond shaped graph: diamond-shape.mastodon.zip

maarzt commented 1 year ago

It is this commit d17a80f3be91d073e4fd56a8b4609f9925cdaca3 that causes the problem.

tinevez commented 1 year ago

Do the nodes are painted in TrackScheme but overlap?

maarzt commented 1 year ago

No, it didn't seem like they where painted overlapping... It's probably more complicated, could be that a dense region of width=0 was created to represent the merging spot. Anyway, there's a fix already ;)