ENH Rename parameters in quickshift, add "ratio"

This commit is contained in:
Andreas Mueller
2012-08-03 11:37:11 +01:00
parent 08df2a5103
commit f0a7212c4f
3 changed files with 14 additions and 12 deletions
+1 -2
View File
@@ -28,9 +28,8 @@ from skimage.data import lena
from skimage.segmentation import quickshift
from skimage.util import img_as_float
img = img_as_float(lena())[::2, ::2, :].copy("C")
segments = quickshift(img, sigma=5, tau=20)
segments = quickshift(img, kernel_size=5, max_dist=20)
print("number of segments: %d" % len(np.unique(segments)))