0x00b1 / napari-features

A feature extraction plugin for Napari
MIT License
7 stars 4 forks source link

Use label id for left most table column values #10

Open sofroniewn opened 3 years ago

sofroniewn commented 3 years ago

Following on from #9 the label index in the left hand most column of the table should not just be the numeric 0 through number of rows, but instead the actual index of the label, so starting at 1 and possibly dealing with missing values. We have some machinery in the labels layer here that might help - i'm trying to recall now what layer._label_index is https://github.com/napari/napari/blob/dc903d2bde15f104d5c619108fe4897c8d4cbb8d/napari/layers/labels/labels.py#L444, but it might be useful - @jni might remember better then me off the top of his head

0x00b1 commented 3 years ago

Gotcha. I’ll do this. Thanks, @sofroniewn!

jni commented 3 years ago

I believe this is the issue that will clarify everything. 😜

https://github.com/napari/napari/issues/2596