imagej / imagej-legacy

ImageJ+ImageJ2 compatibility layer
https://imagej.net/libs/imagej-legacy
BSD 2-Clause "Simplified" License
17 stars 25 forks source link

Verify overlay translation code happening everywhere it needs to #85

Open ctrueden opened 10 years ago

ctrueden commented 10 years ago

We need to ensure that ROIs and overlays are synced properly between IJ1 and IJ2 data structures, in every relevant case.

At the time this ticket was originally created, the OverlayHarmonizer (was OverlayTranslator) was only referenced in the Harmonizer in the legacy layer, and could/should be used in the various DisplayCreators and ImagePlusCreators in the legacy layer also.

Migrated-From: http://trac.imagej.net/ticket/842

imagejan commented 3 years ago

Possibly an example for this:

#@ OverlayService os
#@ ImageDisplay display

println os.getSelectionBounds(display)

This will always print the dimensions of the entire image, no matter if a selection is present in the legacy UI.