Skip to content

Conversation

johnnychen94
Copy link
Owner

using TestImages, ImageCore
using LocalBinaryPatterns
using ImageFeatures

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

# original + average: 4x faster
@btime modified_lbp($img, $lbp_original); # 23.296 ms (14 allocations: 2.00 MiB)
@btime lbp_original($average_mode, $img); # 5.409 ms (3 allocations: 256.16 KiB)

# interpolation + average: 1.8x faster
@btime modified_lbp($img, 24, 3, $lbp_original); # 225.435 ms (15 allocations: 2.00 MiB)
@btime lbp_original($average_mode, $img, 24, 2); # 120.412 ms (32 allocations: 2.00 MiB)

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

codecov bot commented Nov 28, 2021

Codecov Report

Merging #13 (f4ccc68) into master (0031270) will increase coverage by 0.55%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #13      +/-   ##
==========================================
+ Coverage   94.44%   95.00%   +0.55%     
==========================================
  Files           5        5              
  Lines         108      120      +12     
==========================================
+ Hits          102      114      +12     
  Misses          6        6              
Impacted Files Coverage Δ
src/lbp_original.jl 100.00% <100.00%> (ø)

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 0031270...f4ccc68. Read the comment docs.

@johnnychen94 johnnychen94 merged commit 82eb081 into master Nov 28, 2021
@johnnychen94 johnnychen94 deleted the jc/modified branch November 28, 2021 15:11
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