Closed stelfrich closed 6 years ago
@ctrueden I have added logic to create an Overlay
with some points to the MCVE: https://github.com/stelfrich/imagej-legacy-harmonization-mcve: it takes some seconds to create the Overlay
before the widget for the @Parameter
pops up. Changing the slider has worked reasonably fine in my tests.
That MCVE needs this PR.
@stelfrich When you have time (no rush!), could you please retest your MCVE with the latest master branch of imagej-legacy? The #182 merge has substantially changed how the legacy logic works, with pixels never being copied anymore under any circumstances. However, that does not mean this change still isn't necessary. Thoughts welcome.
Sorry for only looking into this now, @ctrueden.
However, that does not mean this change still isn't necessary. Thoughts welcome.
The harmonization, as proposed by this PR, is still required s.t. an IJ1 Overlay
is shown as well as the updated pixel data after changing the noise
parameter via the dialog. I am not sure if I can find the time to dig into the details of #182, nor the changes in imglib2-ij
by @maarzt.
OK, I will merge this. Fingers crossed that it does not tank performance for certain use cases. We might have to revert it if that happens.
We might have to revert it if that happens.
Agreed! Thanks 👍
Legacy
ImagePlus
es are—in some circumstances—created by copying (not referencing) the underlying pixels of aDataset
. Hence, a change in aDataset
is not propagated properly to theImagePlus
if no harmonization between the two is happening. This PR adds harmonization logic when aDisplayUpdatedEvent
is triggered.