mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-12 22:37:11 +08:00
ENH CRAZY speedup
This commit is contained in:
@@ -9,8 +9,8 @@ from IPython.core.debugger import Tracer
|
||||
tracer = Tracer()
|
||||
|
||||
|
||||
img = img_as_float(lena())[::3, ::3, :].copy("C")
|
||||
segments = quickshift(img, sigma=2)
|
||||
img = img_as_float(lena())[::2, ::2, :].copy("C")
|
||||
segments = quickshift(img)
|
||||
segments = np.unique(segments, return_inverse=True)[1].reshape(img.shape[:2])
|
||||
|
||||
plt.subplot(131, title="original")
|
||||
|
||||
Reference in New Issue
Block a user