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
Big Images_From_ROIs #115
Big Images_From_ROIs #115
Conversation
Took 8kx8k.jpeg and drawn 3 ROIs almost as big as 8kx8k and 3 smaller rois, hopefully under 3k.
Edit: From the other window accessible after a script has been run I get:
|
Fixed that bug and uploaded new script to eel. |
Works now as expected. |
|
@jburel The choice of tile size 1024 means that we have 16x fewer calls to setTile() than if we use 256 and this was the value chosen by @drmatthews in his original script. E.g. if we have an ROI of 10k x 10k for RGB image that's 300 calls to setTile() with a 1k x 1k tile but 4800 calls to setTile() with a 256 tile. |
Approx 10k * 10k image creation took: 221.9 seconds with 1k tile image-26101 and, and 557.9 seconds with 256 tile image-26104. |
how about the loading time for viewing? |
I don't think the total time is much slower with 1k tiles, but it maybe feels a bit less responsive because there's a bigger wait for fewer tiles, rather than lots of smaller tiles coming quicker. |
|
@jburel I had thought of that already. The only tricky thing is to give users enough info in the script launch dialog for them to make an informed choice of tile size. For non-big images the extra parameter will be confusing. Also, if the image is too big |
I think adding option to set the tile size will be useful |
@jburel Added 'Tile Size' parameter and updated description. I didn't say "Script will fail for large images" since we don't know how large is large and it will also depend on your setup. The failure for the image above was on my laptop - possibly because it was closed or went to sleep etc. On a proper server we don't know what the limits are. Some people run scripts for days! |
|
so only square tiles will be supported. Just wondering if we should not support non square tiles |
Unless we have any reason to support rectangular tiles, let's not increase the complexity of the script unnecessarily. |
something to check during testing too since this is using |
Could you remove the commented lines? |
eel user-1 |
@jburel Hmmm - works for me! |
I tried again with the same image and another one. It works. I will do further testing |
Everything seems to work, I will keep an eye on that strange behaviour that I noticed. |
--rebased-to #127 |
This allows the
Images_From_ROIs.py
script to create tiled images from 'Big' ROIs. With contributions from @drmatthews.See https://www.openmicroscopy.org/community/viewtopic.php?f=6&t=7565
To test: