-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Julia Version 1.7.1
Commit ac5cc99908 (2021-12-22 19:35 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: 12th Gen Intel(R) Core(TM) i9-12900K
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, goldmont)
Scikit-image
2-3x faster than scikit-image
scikit-image: v0.18.3
using TestImages
using PyCall
sf = pyimport("skimage.feature")
img = Float64.(testimage("cameraman"));
@btime sf.local_binary_pattern($img, 8, 1); # 19.634 ms (46 allocations: 2.00 MiB)
@btime local_binary_pattern($img, 8, 1); # 7.968 ms (8 allocations: 3.00 MiB)
@btime sf.local_binary_pattern($img, 24, 3); # 61.913 ms (46 allocations: 2.00 MiB)
@btime local_binary_pattern($img, 24, 3); # 22.813 ms (33 allocations: 3.00 MiB)
@btime local_binary_pattern($img); # 645.946 μs (3 allocations: 256.16 KiB)
Metadata
Metadata
Assignees
Labels
No labels