bigdataviewer / bigdataviewer-core

ImgLib2-based viewer for registered SPIM stacks and more
BSD 2-Clause "Simplified" License
35 stars 35 forks source link

N5ImageLoader should initialize SetupImgLoaders lazily #202

Open tpietzsch opened 2 weeks ago

tpietzsch commented 2 weeks ago

N5ImageLoader should be able to initialize SetupImgLoaders lazily.

The reason that this is not possible currently is that we need to know the maximum pyramid level occurring, such that the SharedQueue of the VolatileGlobalCellCache can have the correct number of priority levels. A possible solution is to let BlockingFetchQueues increase the number of priorities dynamically.

tpietzsch commented 2 days ago

See https://github.com/imglib/imglib2-cache/issues/18