bauerdavid / napari-nD-annotator

BSD 3-Clause "New" or "Revised" License
28 stars 1 forks source link

Previous labels get object id: 0 #29

Closed timitoth closed 2 years ago

timitoth commented 2 years ago

Describe the bug When I import previous objects 'From labels', all of the object get id=0, so when I create a new object, it gets id=1 (then id=2 and so on), but it's a problem, because like this, we use a colour for annotation that was already used before.

To Reproduce

Expected behavior Read the 'n' previous labels with correct ids from 1 to n, and then when I create a new bounding box, continue the numbering from n+1.

Screenshots kép

napari info napari: 0.4.15 Platform: Windows-10-10.0.19043-SP0 Python: 3.9.12 (tags/v3.9.12:b28265d, Mar 23 2022, 23:52:46) [MSC v.1929 64 bit (AMD64)] Qt: 5.15.2 PyQt5: 5.15.7 NumPy: 1.22.4 SciPy: 1.8.1 Dask: 2022.6.0 VisPy: 0.9.6

OpenGL:

Screens:

Plugins: