-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reconcile IJ1 <-> IJ2 synchronization and object conversion #231
Comments
@imagejan Thanks for summarizing these. We can (and should) change the converter behavior not to touch the |
An important point to test is if conversion/synchronization also works correctly on a higher level that allows interacting with how the current image is displayed (current slice, color map, display settings, etc.):
See also this discussion on the forum: Analyze the current slice of an ImgPlus in ImageJ2 |
This issue has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/analyze-the-current-slice-of-an-imgplus-in-imagej2/38238/3 |
This issue has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/get-active-image-index-in-an-imagej2-plugin-called-in-fiji/39764/3 |
I think the comment in imagej/pyimagej#155 (comment) by @ctrueden is relevant here, also without the Python-related parts:
The question is when (and at which performance cost) synchronization should be performed. Maybe a boolean option flag to distinguish between an "eager" and a "lazy" mode would make sense here, similar to I am posting this here for reference, in case someone will have time to focus on this issue for one week during a future hackathon 😄 |
@maarzt @imagejan This issue is on our radar and in the queue. We're working on finishing up the PyImageJ publication, getting the PyImageJ documentation/examples in order and releasing a new version of PyImageJ ( |
There are currently multiple open issues related to IJ1 <-> IJ2 image conversion:
#@ImgPlus img
Loads VirtualStack into RAMImageStack.getProcessor
upon second runUnsupportedOperationException
ColorTableHarmonizer
As mentioned by @ctrueden in #186 and #229 (comment), we should possibly separate conversion and (lazy) synchronization better and create thorough tests for all (reported and anticipated) use cases.
@ctrueden do you think it would be feasible to change behavior such that:
ImagePlus
<=>Dataset
,Img
,ImageDisplay
etc. does not change theLegacyImageMap
LegacyImageMap
viaLegacyService
) happens only when new UI events happen (i.e.UIService#show()
called, orImagePlus
object created/shown)?
The text was updated successfully, but these errors were encountered: