Skip to content

Commit 9a14d46

Browse files
authored
Update 03-thresholding-and-segmentation.md
Fixing the mixtake I created. I changed the variable in one of the exercises but only once.
1 parent 2b3412f commit 9a14d46

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

episodes/03-thresholding-and-segmentation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ from skimage.data import cells3d
3131
from skimage.filters import gaussian
3232

3333
smoothed_image = gaussian(cells3d()[30, 1, :, :])
34-
print(image.min(), image.max(), image.dtype)
34+
print(smoothed_image.min(), smoothed_image.max(), smoothed_image.dtype)
3535

3636
plt.subplot(1, 2, 1)
37-
plt.imshow(image, cmap='gray')
37+
plt.imshow(smoothed_image, cmap='gray')
3838
plt.title('Gaussian filter')
3939

4040
plt.subplot(1, 2, 2)
41-
binary_image = image > 0.12
41+
binary_image = smoothed_image > 0.12
4242
plt.imshow(binary_image)
4343
plt.title('Threshold > 0.12')
4444
```

0 commit comments

Comments
 (0)