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

Digital image basics: Napari, add cropped image to viewer #700

Open
tischi opened this issue Jul 2, 2024 · 1 comment
Open

Digital image basics: Napari, add cropped image to viewer #700

tischi opened this issue Jul 2, 2024 · 1 comment
Labels
enhancement New feature or request python

Comments

@tischi
Copy link
Collaborator

tischi commented Jul 2, 2024

It could be good idea to add the cropped image to the viewer to explain that there are different layers of images.

So, instead of:

# %%
# Extract one object as a square of pixel values
print(image[7:30,10:26])

...we could do:

# %%
# Crop an image
cropped_image = image[7:30,10:26]
print(cropped_image)

# %%
# Add the cropped image to napari
# Napari:
# - Explore the visibility options of different layers
napari_viewer.add_image(cropped_image)
@tischi tischi added enhancement New feature or request python labels Jul 2, 2024
@tischi
Copy link
Collaborator Author

tischi commented Jul 2, 2024

What do you think? Good idea or too much?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python
Projects
None yet
Development

No branches or pull requests

1 participant