Skip to content

[BUG] Folder of 2D TIFs downsamples much slower than 3D TIF from Napari brainreg #252

@marcodallavecchia

Description

@marcodallavecchia

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions