Skip to content

Conversation

johnnychen94
Copy link
Owner

@johnnychen94 johnnychen94 commented Nov 27, 2021

250x faster than the ImageFeatures version 🚀

The secret is to pre-calculate the encoding table.

using ImageFeatures, TestImages, ImageCore

img = float32.(testimage("camera"));

@btime lbp($img, $lbp_rotation_invariant); # 328.715 ms (11010062 allocations: 506.00 MiB)
@btime lbp_ri($img); # 1.408 ms (8 allocations: 2.50 MiB)

@johnnychen94 johnnychen94 mentioned this pull request Nov 27, 2021
8 tasks
@codecov
Copy link

codecov bot commented Nov 27, 2021

Codecov Report

❗ No coverage uploaded for pull request base (master@cd37a38). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master       #6   +/-   ##
=========================================
  Coverage          ?   95.74%           
=========================================
  Files             ?        4           
  Lines             ?       47           
  Branches          ?        0           
=========================================
  Hits              ?       45           
  Misses            ?        2           
  Partials          ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cd37a38...4c798ea. Read the comment docs.

@johnnychen94 johnnychen94 merged commit ec3d043 into master Nov 27, 2021
@johnnychen94 johnnychen94 deleted the jc/lbp_ri branch November 27, 2021 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant