-
Notifications
You must be signed in to change notification settings - Fork 68
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
Feature request: display() should be able to add images to an existing viewer #1086
Comments
I am happy to take a stab at this if you all agree that it's useful. |
Could you help me understand what advantage there is to having the images be on the same viewer vs just tabbing back and forth between different viewers? Are you using transparency somehow? |
I think the main reason including multiple In terms of how to compare, I sometimes use opacity as you mentioned, but I mostly hide/show specific layers (the eyeball on the right hand side tool bar). |
Got it, makes sense to me! It'd be great if you would take a stab at this. How do you imagine changing the interface to support a persistent viewer? |
I propose to add an optional input argument that takes a napari The # Look at the unprocessed image
viewer = display(stack=unprocessed_stack)
# Do some filtering
ghp = Filter.GaussianHighPass(sigma=3)
high_passed = ghp.run(primary_image, verbose=True, in_place=False)
# Admire your results
display(stack=high_passed, viewer=viewer) A question I have: my understanding is that the |
Sounds like a great API to me. It should return the same viewer as passed in :) |
I think it would be useful if
display()
had the option to add the image as a new layer to an existing Napariviewer
. This is super useful for comparing the image before/after a processing step (e.g., filtering).Thoughts, @kne42 and @ambrosejcarr ?
The text was updated successfully, but these errors were encountered: