Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduced an abstraction layer for all N5 dataset parameters and to … #201

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

StephanPreibisch
Copy link
Member

…potentially expose parts of the image (5D -> 3D for OME-ZARR), this allows us to directly use the N5ImageLoader for example for reading OME-ZARR based datasets.

I tested it on N5 and the Allen OME-ZARR implementation ...

@StephanPreibisch
Copy link
Member Author

Hi @tpietzsch, the pre-fetching is extremely useful also for N5's on the cloud so I added it here ... it really makes a difference for datasets such as s3://janelia-bigstitcher-spark/Stitching/dataset.xml. Let me know what you think about it, I added TODO's throughout the N5ImageLoader.

@StephanPreibisch StephanPreibisch force-pushed the master branch 3 times, most recently from 309845a to fe837a1 Compare October 31, 2024 17:48
…potentially expose parts of the image (5D -> 3D for OME-ZARR), this allows us to directly use the N5ImageLoader for example for reading OME-ZARR based datasets. It also supports pre-fetching of all dataset attributes, which can slow down cloud processing if not done.

I also added an instantiateN5Reader() method.
* BdvN5Format doesn't have to extend N5Properties.
  Added DefaultN5Properties instead.

* 5D container slicing happens by overriding the (now exposed)
  N5ImageLoader.prepareCachedImage(...) method.

* N5ImageLoader.prefetch() must be called by the client if desired.
  This will open a N5Reader if necessary, so can happen independent of
  N5ImageLoader.open().
@tpietzsch tpietzsch merged commit fe3f2da into bigdataviewer:master Nov 6, 2024
1 check passed
@imagesc-bot
Copy link

This pull request has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/fiji-friends-weekly-dev-update-thread/103718/16

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.

3 participants