scalableminds / webknossos

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

Explore/Import from Neuroglancer URI #7385

Closed fm3 closed 12 months ago

fm3 commented 1 year ago

It would be nice if you could just paste the URI of a dataset viewed in neuroglancer into wk and have it searched for explorable dataset layers.

frcroth commented 1 year ago

We need to determine what we want to read: Here is an example Neuroglancer URI JSON:

{"dimensions":{"x":[4e-9,"m"],"y":[4e-9,"m"],"z":[3e-8,"m"]},"position":[100074.5,100000.5,4998.23583984375],"crossSectionScale":1,"projectionScale":262144,"layers":[{"type":"image","source":"precomputed://s3://bossdb-open-data/morgan2020/lgn/em","tab":"rendering","opacity":0.46,"blend":"additive","shaderControls":{"normalized":{"range":[78,255]}},"crossSectionRenderScale":0.12019062105556629,"name":"em"}],"selectedLayer":{"visible":true,"layer":"em"},"layout":"4panel","selection":{"layers":{"em":{"annotationId":"data-bounds","annotationSource":0,"annotationSubsource":"bounds"}}}}

We could read:

These are partly DatasetViewConfig and partly LayerViewConfig. Possibly not everything can be done by using the regular explore (since we only return layers there, not datasets)

There are also some additional properties, I don't understand all of them. What should be read within the scope of this issue?

fm3 commented 1 year ago

I’d say layer name, type and source uri should be enough for the moment :) Thanks for looking into this!