lincbrain / webknossos

Visualize, share and annotate your large 3D images online
https://webknossos.org
GNU Affero General Public License v3.0
0 stars 0 forks source link

Export Webknossos annotations to OME-Zarr or NIfTI-Zarr #16

Open kabilar opened 1 week ago

kabilar commented 1 week ago

Description

Currently Webknossos annotations are in the *.wkw format. We should create scripts to export and convert these annotations to either OME-Zarr or NIfTI-Zarr. We have decided to select the output format to match the base imaging layer(s) so that the orientation is preserved. We can use either the wkcuber or webknossos Python libraries.

Goals

Thank you.

jingjingwu1225 commented 1 day ago

Hi @kabilar, I noticed a zarr link option avaliable for annotations on webknossos, it generates a url link for selected layer( layer volume for annotations), the zarr file has a ome.zarr structure but follows a cxyz direction. I calculated the border distance for each slice at a low-resolution level and get corresponding offset at other resolution levels. And for metadata, we could just download the skeleton annotations as nml format and save essential information into metadata of mask.ome.zarr file. zarr_link nml