ome / omero-blitz

Gradle project containing Ice remoting code for OMERO
https://www.openmicroscopy.org/omero
GNU General Public License v2.0
0 stars 15 forks source link

getShapeStatsRestricted support for Big Images #145

Open will-moore opened 1 year ago

will-moore commented 1 year ago

See discussion at https://forum.image.sc/t/batch-roi-export-py-omero-script/84527/7

The getShapeStatsRestricted() throws ome.conditions.ApiUsageException: This method cannot handle tiled images yet. for big Images because the possibility that the ROIs themselves are big and would lead to a high cost of retrieving all pixel values for them.

However, this means that you can't access pixel value stats even for small ROIs (where the cost would be the same as for a regular-sized image).

It would be preferable to handle Shapes on a case-by-case basis, based on the size of the Shapes and not on the size of the Image.

imagesc-bot commented 1 year ago

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

https://forum.image.sc/t/batch-roi-export-py-omero-script/84527/9