Closed johnnychen94 closed 3 years ago
Merging #10 (95bd4ff) into master (72ea1d0) will increase coverage by
2.09%
. The diff coverage is85.71%
.
@@ Coverage Diff @@
## master #10 +/- ##
==========================================
+ Coverage 91.17% 93.26% +2.09%
==========================================
Files 6 7 +1
Lines 102 104 +2
==========================================
+ Hits 93 97 +4
+ Misses 9 7 -2
Impacted Files | Coverage Δ | |
---|---|---|
src/compat.jl | 0.00% <0.00%> (ø) |
|
src/colorspaces.jl | 50.00% <50.00%> (+10.00%) |
:arrow_up: |
src/ordered.jl | 91.42% <93.33%> (-2.12%) |
:arrow_down: |
src/error_diffusion.jl | 100.00% <100.00%> (ø) |
|
src/threshold.jl | 91.66% <100.00%> (-0.65%) |
:arrow_down: |
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 72ea1d0...95bd4ff. Read the comment docs.
The @inbounds
annotation in ff21dd7 removes the boundary check during getindex
operations (e.g., img[p]
)
@btime simple_error_diffusion($img);
# master: 743.018 μs (4 allocations: 232.31 KiB)
# before: 702.736 μs (5 allocations: 232.41 KiB)
# after: 481.427 μs (5 allocations: 232.41 KiB)
@btime simple_error_diffusion($img, to_linear=true);
# master: 1.753 ms (4 allocations: 232.31 KiB)
# before: 766.562 μs (5 allocations: 232.41 KiB)
# after: 562.010 μs (5 allocations: 232.41 KiB)
By the way, I fully agree correctness tests are overdue...
Some packages in JuliaImages use ReferenceTests
as a tool to write regression test. For example, ImageBinarization.jl
Some packages in JuliaImages use
ReferenceTests
as a tool to write regression test. For example, ImageBinarization.jl
Thanks a lot, that's good to know! I'll open an issue.
Thank you for this amazing PR!
The result visually looks "correct" to me so a double-check would be the best, @adrhill it would be better if you can write some correctness test in the future.