Skip to content

Commit 264f162

Browse files
committed
Fix row/col order in random_walker
1 parent 6df6b45 commit 264f162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lectures/4_segmentation.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@
338338
"indices = draw.circle_perimeter(100, 220, 25)\n",
339339
"\n",
340340
"astronaut_labels[indices] = 1\n",
341-
"astronaut_labels[points[:, 1].astype(int), points[:, 0].astype(int)] = 2\n",
341+
"astronaut_labels[points[:, 0].astype(int), points[:, 1].astype(int)] = 2\n",
342342
"\n",
343343
"image_show(astronaut_labels);"
344344
]

0 commit comments

Comments
 (0)