Describe the bug
For the same data (no matter the size), registering with brainreg through Napari, a folder of 2D TIFs takes much longer (since they are loaded lazily) than a 3D TIF (loaded entirely in memory).
I believe this is due to this line, where depending on how Napari passes the data through its layers, we have a clear slowdown.
To Reproduce
Take same image as 3D stack or saved as folder of 2D TIFs (I used ImageJ Image Sequence export)
Expected behaviour
If there's enough memory both scenarios could force all images to be loaded in memory. If not the usage of dask, as described here should solve the issue.