File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 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# %%
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
103102fig , 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 " )
106105ax .axis ("off" )
107106plt .tight_layout ()
108107plt .show ()
You can’t perform that action at this time.
0 commit comments