-
-
Notifications
You must be signed in to change notification settings - Fork 686
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
python streaming pipeline #5136
Comments
Thank you for contributing an issue! 🙏 Welcome to the ITK community! 🤗👋☀️ We are glad you are here and appreciate your contribution. Please keep in mind our community participation guidelines. 📜 This is an automatic message. Allow for time for the ITK community to be able to read the issue and comment on it. |
Have you seen this example, and does it help you? |
Hi, thanks you for your quick reply ! Actually this example seems quite similar to the first one I mentioned (https://examples.itk.org/src/io/imagebase/processimagechunks/documentation). My purpose is to read images by chunk and using an |
Hi @ArthurVincentCS , When converting the image to a NumPy array, it forces a load of the entire image into memory. One approach you may find helpful is to first convert the image to an OME-Zarr with ngff-zarr. Then process the chunk-by-chunk in the Dask Array with Dask Array |
The itkTIFFImageIO class does not support streaming, so the reader will always produce the full image in the file. Image file formats such as NRRD an MetaIO support streaming. |
Thank you for the links to the Dask documentation. Is there a plan to enable Python streaming in future versions of ITK, or do you consider that users should turn to Dask or other solutions in such cases?
OK, thanks you. |
Streaming can be performed via ITK's Python API as described in this notebook. |
This appears to be an issue with understanding and find the correct documentation. If there is a coding issue, please reopen. |
Description
I'm trying to use the ITK API for Python to set up a data pipeline with chunk-wise reading, inspired by examples I found on the subject, specifically:
Steps to Reproduce
Actual behavior
Currently, it seems that the region is not being propagated to the filter preceding the one created with PyImageFilter.
The execution trace is as follows:
Reproducibility
It happen every time.
Version
ITK 5.3.0 (itk-5.3.0-py311h781c19f_0.conda)
If I am doing something wrong or if there is more documentation about the Python API and what needs to be done to propagate regions, please feel free to let me know.
Thank you for any assistance you might provide.
The text was updated successfully, but these errors were encountered: