mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-03 12:50:25 +08:00
ENH CRAZY speedup
This commit is contained in:
1 parent
b977d59c1b
commit
be4b44bc63
2 files changed
+13
-6
No files matched your search
@@ -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