File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -346,9 +346,12 @@ The `skimage.filters.threshold_otsu()` function can be used to
346
346
determine the threshold automatically via Otsu's method. Then numpy
347
347
comparison operators can be used to apply it as before. Here are the
348
348
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}
352
355
353
356
~~~
354
357
Found automatic threshold t = 0.4172454549881862.
You can’t perform that action at this time.
0 commit comments