Skip to content

Commit

Permalink
week7 updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dtadros committed Nov 4, 2024
1 parent 18fd20f commit 3a9bfad
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 25 deletions.
3 changes: 1 addition & 2 deletions week7/exercice_cours7_ImageAnlysis_II.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@
" # Step 4: Iterate over each detected region and filter based on size\n",
" for prop in props:\n",
" # Filter regions based on size or area; adjust the thresholds to your needs\n",
" if (prop.area > min_size) | (prop.area < max_size): # Adjust based on the expected size of the inner circles\n",
" if (prop.area > min_size) & (prop.area < max_size): # Adjust based on the expected size of the inner circles\n",
" # Keep the smaller region (inner circle)\n",
" inner_circle_mask[labeled_edges == prop.label] = 1\n",
"\n",
Expand Down Expand Up @@ -362,7 +362,6 @@
"metadata": {},
"outputs": [],
"source": [
"import cv2\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"from skimage.measure import label\n",
Expand Down
45 changes: 22 additions & 23 deletions week7/exercice_cours7_ImageAnlysis_II_solutions.ipynb

Large diffs are not rendered by default.

0 comments on commit 3a9bfad

Please sign in to comment.