Skip to content

Commit

Permalink
Use faster default color difference metric DE_AB (#87)
Browse files Browse the repository at this point in the history
* Use faster default color difference metric `DE_AB`

* Update reference tests
  • Loading branch information
adrhill authored Jul 27, 2022
1 parent 3a15890 commit ed8d020
Show file tree
Hide file tree
Showing 8 changed files with 121 additions and 121 deletions.
4 changes: 2 additions & 2 deletions src/api/color.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function _colordither(
img::GenericImage,
alg::AbstractDither,
cs::AbstractVector{<:Pixel};
metric::DifferenceMetric=DE_2000(),
metric::DifferenceMetric=DE_AB(),
to_linear=false,
kwargs...,
) where {T}
Expand All @@ -74,7 +74,7 @@ function _colordither(
img::GenericImage,
alg::AbstractDither,
cs::AbstractVector{<:Color{<:Any,3}};
metric::DifferenceMetric=DE_2000(),
metric::DifferenceMetric=DE_AB(),
to_linear=false,
kwargs...,
) where {T<:NumberLike}
Expand Down
34 changes: 17 additions & 17 deletions test/references/color/Bayer.txt

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions test/references/color/Bayer_from_gray.txt

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions test/references/color/ClosestColor.txt

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions test/references/color/ClosestColor_from_gray.txt

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions test/references/color/FloydSteinberg.txt

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions test/references/color/FloydSteinberg_clamp_error.txt

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions test/references/color/FloydSteinberg_from_gray.txt

Large diffs are not rendered by default.

0 comments on commit ed8d020

Please sign in to comment.