Skip to content

Conversation

@deruyter92
Copy link

@deruyter92 deruyter92 commented Jan 6, 2026

Problem description:
When loading an image folder, previous implementation only looked at the first file to create a glob pattern for loading all images in the folder. This has the disadvantage that files with different extensions cannot be loaded. See issue #3160 on the DeepLabCut repository.

Changes:
This commit changes image reading to be more flexible: input can be a single path, a glob pattern or a list of image paths. Images of different sizes are stacked using dask delayed arrays. (Mostly inspired by napari's own default implementation.)
When loading an image folder, all files with valid image extensions are selected inside that folder.

This commit changes image reading to be more flexible: input can be a single path, a glob pattern or a list of image paths. Images of different sizes are stacked using dask delayed arrays. (Mostly inspired by napari's own default implementation.)

Previous implementation only allowed for a glob pattern when loading multiple images. This has the disadvantage that files with different extensions cannot be loaded.

Fixes issue #3160 with multiple images that have different extensions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant