Tweak join_segmentations example for clarity

This commit is contained in:
Juan Nunez-Iglesias
2012-12-12 14:37:43 +11:00
parent e3951a2a78
commit 82c3526f30
+2 -1
View File
@@ -37,7 +37,8 @@ seg1 = nd.label(ws == foreground)[0]
# make the RGB equivalent of `coins`
coins_colour = np.tile(coins[..., np.newaxis], (1, 1, 3))
seg2 = slic(coins_colour, max_iter=20, sigma=0, convert2lab=False)
seg2 = slic(coins_colour, n_segments=30, max_iter=160, sigma=1, ratio=9,
convert2lab=False)
# combine the two
segj = join_segmentations(seg1, seg2)