webknossos-libs icon indicating copy to clipboard operation
webknossos-libs copied to clipboard

Access Metadata of Segments & Trees in Annotations

Open fm3 opened this issue 1 year ago • 4 comments

https://github.com/scalableminds/webknossos/pull/7875 introduces metadata for segments and trees and extends the NML format to include it. The libs should allow accessing it. We should discuss what the interface should look like.

fm3 avatar Sep 23 '24 11:09 fm3

Hi @fm3, is there a way to use get_volume_layer_segments() to get the segment_id/name mapping without downloading the volume annotation NML file? Thank you.

kabilar avatar Oct 16 '24 21:10 kabilar

cc @jingjingwu1225 @balbasty @aaronkanzer

kabilar avatar Oct 16 '24 21:10 kabilar

As I understand it, the python libs currently access the contents of annotations via the downloaded NML file. So I’m afraid the download step is not optional. Eventually, we may build APIs to interact with individual elements of annotations without the download step, but as far as I know that is not on the short-term agenda. Tackling this issue concerning the new segment metadata will also be based on NML as an exchange format.

fm3 avatar Oct 17 '24 09:10 fm3

Thanks for the quick response, @fm3. That sounds good.

kabilar avatar Oct 17 '24 14:10 kabilar