Skip to content

Commit

Permalink
reran notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
haesleinhuepf committed Oct 31, 2023
1 parent e18d60d commit c01b53f
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 186 deletions.
57 changes: 28 additions & 29 deletions demo/basic_demo.ipynb

Large diffs are not rendered by default.

22 changes: 17 additions & 5 deletions demo/documenting_code.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,21 @@
"execution_count": 1,
"id": "6430b191-58af-4d84-b76e-39d7a9e1a38b",
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"'0.4.0'"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from bia_bob import doc"
"from bia_bob import bob, doc\n",
"bob.__version__"
]
},
{
Expand Down Expand Up @@ -52,13 +64,13 @@
"from skimage.filters import threshold_otsu\n",
"from skimage.measure import label\n",
"\n",
"# Calculate the threshold value using Otsu algorithm\n",
"# Compute the threshold value using Otsu's method\n",
"threshold = threshold_otsu(image)\n",
"\n",
"# Create a binary image using the calculated threshold\n",
"# Create a binary image by thresholding the input image\n",
"binary = image > threshold\n",
"\n",
"# Label the connected components in the binary image\n",
"# Apply connected component labeling to the binary image\n",
"labels = label(binary)"
]
},
Expand Down
Loading

0 comments on commit c01b53f

Please sign in to comment.