You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Note that as of skimage 0.25.0, the `square` function has been deprecated in
49
+
favour of a new function, [footprint_rectangle](https://scikit-image.org/docs/stable/api/skimage.morphology.html#skimage.morphology.footprint_rectangle).)
50
+
38
51
::::::::::::::::::::::::::::::::::::: challenge
39
-
## Exercise 7: Applying filters
52
+
## Exercise 6: Applying filters
40
53
41
-
Look at the documentation pages for the mean and Gaussian filters above. Load the last channel
42
-
of FluorescentCells_3channel.tif containing the nuclei, and build a figure displaying it in each
43
-
of the following forms:
54
+
Look at the documentation pages for the mean and Gaussian filters above. Load the second channel
55
+
of the 30th frame of the test image [skimage.data.cells3d()](https://scikit-image.org/docs/stable/api/skimage.data.html#skimage.data.cells3d):
56
+
57
+
```python
58
+
from skimage.data import cells3d
59
+
60
+
image = cells3d()[30, 1, :, :]
61
+
```
62
+
63
+
Build a figure displaying this image in each of the following forms:
Larger mean kernels and sigma values will result in a greater smoothing
89
-
effect and a more blurred image.
106
+
Larger kernels and sigma values will result in a greater smoothing
107
+
effect and a more blurred image - as you can see, it is possible to
108
+
over-blur the image.
90
109
:::::::::::::::::::::::::::::::::
91
110
:::::::::::::::::::::::::::::::::::::::::::::::
92
111
93
112
## Removing the background
94
113
95
-
Sometimes when we're trying to isolate the foreground from the background, the two
96
-
are not entirely distinct from each other. In cases like this, a rolling ball
114
+
Eventually we're going to want to isolate the foreground from the background. In some
115
+
images, this may be difficult especially if the two are not entirely distinct from each
116
+
other, or if the background is not a uniform shade. In cases like this, a rolling ball
97
117
algorithm can be applied. The rolling ball estimates the background intensity of an
98
118
image by using the pixel values to translate the image into a height map, and then
99
119
rolling a ball of a given radius across it. Additional information on how it works
100
120
can be found [here](https://www.researchgate.net/figure/Schematic-diagram-of-background-subtraction-by-the-rolling-ball-method-the-histogram_fig3_319985119).
101
121
102
122
::::::::::::::::::::::::::::::::::::: challenge
103
-
## Exercise 8: Rolling ball background intensity
123
+
## Exercise 7: Rolling ball background intensity
104
124
105
125
Look at the [scikit-image documentation](https://scikit-image.org/docs/stable/auto_examples/segmentation/plot_rolling_ball.html)
106
-
on the rolling ball filter. Load the example image `skimage.data.coins` and display:
126
+
on the rolling ball filter. Load the example image [skimage.data.coins](https://scikit-image.org/docs/stable/api/skimage.data.html#skimage.data.coins)
127
+
and display:
107
128
108
129
- the original image
109
130
- image with a rolling ball of radius 100 applied
@@ -118,36 +139,36 @@ Compute time can be found using Python's datetime library:
0 commit comments