ome / omero-figure

An OMERO.web app for creating Figures from images in OMERO
http://figure.openmicroscopy.org
GNU Affero General Public License v3.0
15 stars 30 forks source link

ROI rectangle inset rotation #408

Closed will-moore closed 3 years ago

will-moore commented 3 years ago

See https://forum.image.sc/t/omero-figure-box-annotations-rotated-incorrectly/45787

Copy the crop region from a rotated image and paste on it's "parent" image - but the new Rectangle isn't rotated.

Just playing with css tools, a fix can be simulated with a transform of negative rotation and transform-origin. See:

Screenshot 2020-11-26 at 10 27 43

But, we'd need to save this and handle it somehow when Editing the rectangle?

imagesc-bot commented 3 years ago

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

https://forum.image.sc/t/omero-figure-box-annotations-rotated-incorrectly/45787/2

will-moore commented 3 years ago

One solution might be to create a Polygon when user pastes a Rotated crop region. This would solve the display of it in the Edit tab and it wouldn't be editable. It would also export correctly without any change in the export script.

pwalczysko commented 3 years ago

Works as expected. Tested the described workflow as well as drawing a normal rectangle and rotating the same panel. Both worked.