NEUBIAS / training-resources

Resources for teaching/preparing to teach bioimage analysis
https://neubias.github.io/training-resources
Other
48 stars 21 forks source link

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

Open tischi opened 4 months ago

tischi commented 4 months ago

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 commented 4 months ago

What do you think? Good idea or too much?