-
Notifications
You must be signed in to change notification settings - Fork 4
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
Map active layer to current ij window #205
Conversation
65e885e
to
b3723a2
Compare
Unfortunately, you can only make a My current thinking is that, maybe, we could always wrap all napari image layers into Java (to |
b3723a2
to
d5eabbe
Compare
Codecov ReportPatch coverage:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## main #205 +/- ##
==========================================
- Coverage 89.81% 89.05% -0.77%
==========================================
Files 45 47 +2
Lines 4242 4421 +179
==========================================
+ Hits 3810 3937 +127
- Misses 432 484 +52
☔ View full report in Codecov by Sentry. |
d5eabbe
to
b129b25
Compare
So, while this works great in limited scenarios, there are too many issues with original ImageJ plugins running in the napari UI that I'm doing to dismiss this effort, in favor of #207. |
When we are running in
interactive
mode, it would be nice to have better support for original ImageJ plugins when the ImageJ UI is not shown. To that end, if ImageJ is enabled but the ImageJ UI is not visible, we can set the activeImagePlus
to the active napari layer, to mimic the GUI components needed.The current improvements allow you to call an inplace
PlugIn
taking one input, and synchronize the output back into the active napari layer.There are, at time of writing, some open questions/bugs, that make this a draft PR:
Gaussian Blur...
command can cause napari-imagej to hang on shutdown. A stacktrace dump shows a non-daemon thread pool is still active, so it may be coming from hereImageDisplay
s/ImagePlus
es created through this code path are deleted after we're done? Otherwise, the created images can affect the execution of other ImageJ functionality?ImagePlus
es? @ctrueden mentioned something about proxies, but I'm naive about this.This would close #203