You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working on DitherPunk.jl, colordiff errors on many input types.
It is unclear to me whether these errors are intended or whether we could simply convert inputs to the colorspace the metric uses. If this behavior is unintended, I can address it in a PR.
MWE
Running fuzzy tests on a subset of Colorants reveals that no metric supports XYZ. Testing on more "obscure" colorant types reveals even more errors.
METRICS = (DE_2000, DE_94, DE_JPC79, DE_CMC, DE_BFD, DE_AB, DE_DIN99, DE_DIN99d, DE_DIN99o)
COLORTYPES = (RGB, HSV, XYZ, Lab, Gray)
@testset"Fuzzy testing"begin@testset"$M"for M in METRICS
metric =M()
@testset"$(A), $(B)"for (A, B) in Iterators.product(COLORTYPES, COLORTYPES)
# Sample random inputsfor _ =1:100
a =rand(A)
b =rand(B)
@test_nowarncolordiff(a, b; metric=metric)
endendendend
Working on DitherPunk.jl,
colordiff
errors on many input types.It is unclear to me whether these errors are intended or whether we could simply convert inputs to the colorspace the metric uses. If this behavior is unintended, I can address it in a PR.
MWE
Running fuzzy tests on a subset of
Colorant
s reveals that no metric supportsXYZ
. Testing on more "obscure" colorant types reveals even more errors.which returns
The text was updated successfully, but these errors were encountered: