Skip to content

Commit 4ae63bb

Browse files
committed
Tweak segmentation parameters in solution
For some reason active_contour and random_walker return different results now. Earlier dependencies were not tested. The results with tweaked active_contour and random_walker (as before excpect for fixed indexing) are similar if slightly worse than before.
1 parent 264f162 commit 4ae63bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lectures/solutions/4_segmentation.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@
361361
"metadata": {},
362362
"outputs": [],
363363
"source": [
364-
"snake = seg.active_contour(astronaut_gray, points, alpha=0.1, w_edge=1.3)"
364+
"snake = seg.active_contour(astronaut_gray, points, alpha=0.1)"
365365
]
366366
},
367367
{
@@ -459,7 +459,7 @@
459459
"indices = draw.circle_perimeter(100, 220, 25)\n",
460460
"\n",
461461
"astronaut_labels[indices] = 1\n",
462-
"astronaut_labels[points[:, 1].astype(np.int), points[:, 0].astype(np.int)] = 2\n",
462+
"astronaut_labels[points[:, 0].astype(int), points[:, 1].astype(int)] = 2\n",
463463
"\n",
464464
"image_show(astronaut_labels);"
465465
]

0 commit comments

Comments
 (0)