Skip to content

Commit 2aba57a

Browse files
committed
Added links and removed some pre-filled code
1 parent f7da862 commit 2aba57a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

05_feature_extraction/03_Otsu_threshold.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"source": [
88
"# Otsu's threshold method (optional)\n",
99
"\n",
10-
"In this notebook you will learn how to write your own implementation of Otsu's threshold method (Otsu et al., IEEE, 1979). It will allow you to apply many of the previously introduced concepts of Python programing for image data.\n",
10+
"In this notebook you will learn how to write your own implementation of Otsu's threshold method ([Otsu et al., IEEE, 1979)](https://ieeexplore.ieee.org/document/4310076). It will allow you to apply many of the previously introduced concepts of Python programing for image data.\n",
1111
"\n",
1212
"## The algorithm\n",
1313
"Otsu's threshold method selects a threshold value to which all pixels in the image are compared. The pixels with gray values below and above the threshold are denoted $A$ and $B$. For a given threshold $t$ between the image's minimal and maximal gray value $t \\in ]min(image), max(image)[$, the method calculates the weighted variances $\\eta_w$ of pixels in $A$ and $B$:\n",
@@ -155,7 +155,7 @@
155155
"source": [
156156
"Next, calculate the variances and their weights for $A$ and $B$:\n",
157157
"\n",
158-
"*Tip: Search online whether numpy may have a convenient function for this!*"
158+
"*Tip: Search online whether numpy may have a [convenient function](https://numpy.org/doc/stable/reference/routines.statistics.html) for this!*"
159159
]
160160
},
161161
{
@@ -234,8 +234,8 @@
234234
"metadata": {},
235235
"outputs": [],
236236
"source": [
237-
"variances_below_array = np.asarray(variances_below)\n",
238-
"variances_above_array = np.asarray(variances_above)"
237+
"variances_below_array = \n",
238+
"variances_above_array = "
239239
]
240240
},
241241
{

0 commit comments

Comments
 (0)