JuliaImages / DitherPunk.jl

Dithering algorithms in Julia.
MIT License
60 stars 3 forks source link

Refactor `clamp_error` into a keyword argument of `dither` for error diffusion #86

Closed adrhill closed 2 years ago

adrhill commented 2 years ago

Previously, this was part of the ErrorDiffusion struct. This makes experimentation easier without having to create a new instance of an algorithm.

codecov[bot] commented 2 years ago

Codecov Report

Merging #86 (0f5cf15) into master (13855c8) will increase coverage by 1.85%. The diff coverage is 92.59%.

@@            Coverage Diff             @@
##           master      #86      +/-   ##
==========================================
+ Coverage   95.92%   97.77%   +1.85%     
==========================================
  Files          13       13              
  Lines         270      270              
==========================================
+ Hits          259      264       +5     
+ Misses         11        6       -5     
Impacted Files Coverage Δ
src/error_diffusion.jl 96.20% <91.30%> (ø)
src/api/binary.jl 100.00% <100.00%> (ø)
src/api/color.jl 90.00% <100.00%> (ø)
src/eval.jl 100.00% <0.00%> (+50.00%) :arrow_up:

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 13855c8...0f5cf15. Read the comment docs.