Join GitHub today
Image loading code needs feedback mechanism #173
Now that we support CellImg backed virtual data in the file loader the feedback to the user during the loading process should be made more granular. For one image that is about a gig in size (36594.tif): the loading process informs that it will open as a CellImg and then no more updates to UI happen until it draws some minutes later. We need a progress indicator showing what is happening. This might just require a status update of some kind to happen at regular intervals.
Unfortunately, putting in a status update every time a cell is loaded (saying "Cell # / total cells loaded") noticeably decreased performance..
Also, some cases of waiting are more problematic. BrightnessContrast, for example, delegates to ComputeMinMax in imglib2, which doesn't have a context available to invoke the status service.
Finally, @hinerm believes that a status message should only be displayed when a Reader is invoked to actually load a byte array (as opposed to when retrieving a cell from a cache) which is only known at the CellCache level. However, the CellCache has no notion of how many cells are going to be loaded. If rendering a 500x500x100000 image and only the cells of the current plane are loaded, it is not clear how to display a meaningful progress bar.
What if we also had a "doing work" animation? Then when the operation (loading the first plane in this case) is complete, it stops the animation..
This would also be useful for other operations, like when computing tiles in Fusion when the end number of tiles can't be known...