Skip to content

Commit c2bb278

Browse files
committed
Move to max projection to mean
1 parent 596efbb commit c2bb278

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

examples/core_function.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
per image line
1616
- rotation_sample.tif: A TIFF stack to be derotated.
1717
18-
The script computes the derotated movie and displays a maximum intensity
19-
projection for quick visual inspection.
18+
The script computes the derotated movie and displays the mean image of the
19+
derotated stack.
2020
"""
2121

2222
# %%
@@ -95,14 +95,13 @@
9595
)
9696

9797
# %%
98-
# Visualize the result using a maximum intensity projection
98+
# Visualize the result by taking the mean
9999

100-
print("Computing max projection for visualization...")
101-
max_proj = np.max(derotated_stack, axis=0)
100+
mean_image = np.mean(derotated_stack, axis=0)
102101

103102
fig, ax = plt.subplots(figsize=(10, 5))
104-
ax.imshow(max_proj, cmap="viridis")
105-
ax.set_title("Maximum Intensity Projection of Derotated Movie")
103+
ax.imshow(mean_image, cmap="viridis")
104+
ax.set_title("Mean image of the derotated stack")
106105
ax.axis("off")
107106
plt.tight_layout()
108107
plt.show()

0 commit comments

Comments
 (0)