Skip to content
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

Question #129

Open
haesleinhuepf opened this issue Jan 26, 2025 · 1 comment
Open

Question #129

haesleinhuepf opened this issue Jan 26, 2025 · 1 comment

Comments

@haesleinhuepf
Copy link
Owner

How can I use stackview to build a user-interface for a function?

git-bob answer

Copy link

This message was generated by git-bob (version: 0.17.0, model: gpt-4o-2024-08-06, log), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.

To build a user interface for a function using the stackview library, you can use the stackview.interact function. Here's a simple example:

import stackview
from skimage.filters import gaussian
from skimage.io import imread

# Load images
image1 = imread("data/Haase_MRT_tfl3d1.tif")
image2 = imread("data/CalibZAPWfixed_000154_max.tif")

# Create an interactive UI for the gaussian function
stackview.interact(gaussian, context=globals(), continuous_update=True)

In this example, stackview.interact builds a user interface for the gaussian function where you can adjust parameters interactively. Ensure you have your images loaded and accessible in the context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant