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.
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 theVolatileGlobalCellCache
can have the correct number of priority levels. A possible solution is to letBlockingFetchQueues
increase the number of priorities dynamically.