When loading ROIs from OMERO that have shape transformations, the transformations are not applied, which results in them being displayed at incorrect positions or not at all.
As an example, the following image has a couple of rectangle shapes, which are shown correctly using Image viewer:
When loading them in Figure, the following data is loaded; note the X/Y coordinates and Transform:
When adding the rectangle in Figure, the following error is shown:
While this is an extreme example, since X/Y/Transform here could be recalculated so that X/Y is still a point on the rectangle, there is no guarantee some tools won't come up with transformations and resulting coordinates that appear to be outside of the image bounds but are not after the transformation is applied.
The export script already takes rectangle transformations into account, see #306, #315, although transformations for other shape types are probably not applied.
When loading ROIs from OMERO that have shape transformations, the transformations are not applied, which results in them being displayed at incorrect positions or not at all.
As an example, the following image has a couple of rectangle shapes, which are shown correctly using Image viewer:
When loading them in Figure, the following data is loaded; note the
X
/Y
coordinates andTransform
:When adding the rectangle in Figure, the following error is shown:
While this is an extreme example, since X/Y/Transform here could be recalculated so that X/Y is still a point on the rectangle, there is no guarantee some tools won't come up with transformations and resulting coordinates that appear to be outside of the image bounds but are not after the transformation is applied.
The export script already takes rectangle transformations into account, see #306, #315, although transformations for other shape types are probably not applied.