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

Support 2d conversion

Open normanrz opened this issue 4 years ago • 4 comments

The wkw format is ill-suited for large 2D images. Therefore, webknossos has experimental support for tiled-tiff formats. The cuber should auto-detect 2D input files and convert them to tiled-tiffs including metadata.

I believe @fm3 has some example code for how to produce tiled tiffs.

normanrz avatar Feb 09 '21 10:02 normanrz

See https://github.com/scalableminds/webknossos-connect/pull/97

fm3 avatar Feb 09 '21 10:02 fm3

I guess we should use zarr with a z-chunk-size of 1 instead here. Is there anything preventing anisotropic chunk-sizes in the wk-backen atm @fm3? If not we could incorporate this already into add_layer_from_images, using a better chunk-size default for 2D datasets.

jstriebel avatar Jun 09 '22 13:06 jstriebel

The zarr adapter in the wk backend supports 2d chunk sizes. However, the backend logic is not really optimized for these. It will still do 32³ cutouts etc. Still I agree that this may be a good way to deal with 2d datasets in the long run.

fm3 avatar Jun 09 '22 13:06 fm3

Thanks for the info! Then we could still do 2D chunk sizes, at it would greatly reduce the storage on disk / in the cloud. Efficiency for streaming this to the browser is a different topic I think.

jstriebel avatar Jun 09 '22 15:06 jstriebel