@@ -86,7 +86,7 @@ at the image's shape:
8686
8787``` python
8888from skimage.io import imread
89- iage = imread(' path/to/FluorescentCells_3channel.tif' )
89+ image = imread(' path/to/FluorescentCells_3channel.tif' )
9090image.shape
9191# returns: (512, 512, 3)
9292```
@@ -127,7 +127,7 @@ channel axis is represented as a slider, meaning we can't view the two at the sa
127127As an alternative, we can load the image in the Python console:
128128
129129``` python
130- image = skimage.io. imread(' path/to/confocal-series_zstack.tif' )
130+ image = imread(' path/to/confocal-series_zstack.tif' )
131131image.shape
132132# returns: (25, 2, 400, 400)
133133```
@@ -161,7 +161,7 @@ Remember that instead of `matplotlib.pyplot.imshow()`, you'll need to use `viewe
161161``` python
162162import skimage
163163
164- image = skimage.io .cells3d()
164+ image = skimage.data .cells3d()
165165image.shape
166166# returns: (60, 2, 256, 256)
167167
@@ -208,8 +208,9 @@ For example, we can go to 'Open Sample' -> 'napari builtins' and -> 'Binary Blo
208208- Split touching objects (nsbatwm). Try experimenting with different sigma values until you get some good cell separations.
209209- Connected component labelling (scikit-image, nsbatwm)
210210
211- Note: The Otsu threshold shouldn't be required since the test image is already a binary, but for some reason the 'Split
212- touching objects' Napari tool isn't able to recognise the original as a binary image.
211+ Note: The Otsu threshold shouldn't be required since the test image is already a binary, but the 'Split
212+ touching objects' Napari tool isn't able to recognise the original as a binary image. This is because Napari expects the values
213+ to be 0/1, whereas the test image uses the values True/False. Thresholding the image again converts it to the right type.
213214
214215::::::::::::::::::::::::::::::::::::: challenge
215216
0 commit comments