matbryan52 / image-viewer

MIT License
3 stars 1 forks source link

Slice into channels from axis definition, if possible #4

Closed sk1p closed 1 year ago

sk1p commented 1 year ago

Fixes #3

Creates a list of array slices into the loaded data, either taking a slice(None, None, None) for sig dims, or popping a concrete index from a ndindex iteration for nav dims. Of course not suitable for huge arrays, but still works okay on my laptop for a ((20, 3838, 3710) test stack (that's about 1.1GB)

sets channel_dimension to a tuple of all navigation axes.

sk1p commented 1 year ago

This is now updated to use the new channel_dimension-as-tuple parameter, which seems to work great