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.
If you open an
ImagePlus
in the legacy UI and then try to convert it to aDataset
(orDatasetView
), you may not be able to do so depending on whether the method you call updates theLegacyImageMap
first. Many ofLegacyImageDisplayService
's just delegate to theDefaultImageDisplayService
, which of course do not update theLegacyImageMap
. Now, using thedefault
methods ofImageDisplayService
, all methods should end up updating theLegacyImageMap
.This PR requires imagej/imagej-common#105.