imagej / imagej-legacy

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

Use new default ImageDisplayService methods #287

Closed gselzer closed 1 year ago

gselzer commented 1 year ago

If you open an ImagePlus in the legacy UI and then try to convert it to a Dataset (or DatasetView), you may not be able to do so depending on whether the method you call updates the LegacyImageMap first. Many of LegacyImageDisplayService's just delegate to the DefaultImageDisplayService, which of course do not update the LegacyImageMap. Now, using the default methods of ImageDisplayService, all methods should end up updating the LegacyImageMap.

This PR requires imagej/imagej-common#105.