Skip to content

Commit e74aa2d

Browse files
authored
Update 07-thresholding.md
fix line formatting so python block gets formatted for display
1 parent b59df5b commit e74aa2d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

episodes/07-thresholding.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,12 @@ The `skimage.filters.threshold_otsu()` function can be used to
346346
determine the threshold automatically via Otsu's method. Then numpy
347347
comparison operators can be used to apply it as before. Here are the
348348
Python commands to determine the threshold `t` with Otsu's method.
349-
~~~ # perform automatic thresholding t =
350-
skimage.filters.threshold_otsu(blurred_image) print("Found automatic
351-
threshold t = {}.".format(t)) ~~~ {: .language-python}
349+
~~~
350+
# perform automatic thresholding
351+
t = skimage.filters.threshold_otsu(blurred_image)
352+
print("Found automatic threshold t = {}.".format(t))
353+
~~~
354+
{: .language-python}
352355
353356
~~~
354357
Found automatic threshold t = 0.4172454549881862.

0 commit comments

Comments
 (0)