Skip to content

Commit

Permalink
Improve projections skimage implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
tischi committed Jul 1, 2024
1 parent b842693 commit 6f12376
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/projections/projections_act1_skimage_napari.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# - Napari: observe that the image layer context menu also allows one to create projections
# - Napari: *Toggle grid mode (Ctrl + G)* to view images side by side
max_z_image = np.max(image, axis=0)
viewer.add_image(max_z_image, scale=scales[1:3])
viewer.add_image(max_z_image, scale=[scales[1], scales[2]])

# %%
# Compute sum projection along z-axis
Expand All @@ -38,7 +38,7 @@
# some high values appear dark. More details and a possible work-around is given at
# the end of this script.
sum_z_image = np.sum(image, axis=0)
viewer.add_image(sum_z_image, scale=scales[1:3])
viewer.add_image(sum_z_image, scale=[scales[1], scales[2]])

# %%
# Observe that the data type changed during the sum projection
Expand Down

0 comments on commit 6f12376

Please sign in to comment.