Skip to content

Commit

Permalink
Link to download jupyter notebook added
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiasc89 committed Oct 25, 2024
1 parent 0a4d05d commit 2451336
Show file tree
Hide file tree
Showing 2 changed files with 416 additions and 8 deletions.
13 changes: 5 additions & 8 deletions content/docs/processing/z_proj_tut_simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ tags = ["z-stacks", "projection"]
When it comes to capturing intricate intracellular structures or achieving the sharpest focus in microscopy images, acquiring Z-stacks is crucial. Z-stacks allow us to collect a series of images at different focal planes, providing a comprehensive view of the specimen. When processing these images, usually we would like to create Z-projection to reconstruct our structure of interest.

Let's learn how to do it using Python🐍!
You can download the Jupyter notebook linked to this entry [here](/notebooks/z_proj_tut_simple.ipynb).

## Import packages
First of all let's import the required packages.

Expand Down Expand Up @@ -68,8 +70,6 @@ plt.imshow(image_3d[30,:,:]) # showing middle z-slice
{{< figure src="media/z_proj_tut_simple/output_8_1.png" alt="" caption="" >}}


![png](output_8_1.png)



Amazing! We have captured a mitotic event 🔬
Expand Down Expand Up @@ -120,9 +120,8 @@ plt.tight_layout() # Adjust layout to prevent overlap
plt.show()
```


{{< figure src="media/z_proj_tut_simple/output_12_0.png" alt="" caption="" >}}

![png](output_12_0.png)



Expand Down Expand Up @@ -162,10 +161,9 @@ plt.tight_layout() # Adjust layout to prevent overlap
plt.show()
```

{{< figure src="media/z_proj_tut_simple/output_14_0.png" alt="" caption="" >}}


![png](output_14_0.png)



Aha, mystery solved! It turns out the slices near the edges of the stack contain out-of-focus regions.
Expand All @@ -191,9 +189,8 @@ plt.imshow(min_img_sel, cmap='gray') # to visualize the output image




{{< figure src="media/z_proj_tut_simple/output_16_1.png" alt="" caption="" >}}

![png](output_16_1.png)



Expand Down
411 changes: 411 additions & 0 deletions static/notebooks/z_proj_tut_simple.ipynb

Large diffs are not rendered by default.

0 comments on commit 2451336

Please sign in to comment.