Giter VIP home page Giter VIP logo

Comments (4)

zschuessler avatar zschuessler commented on July 17, 2024

I've verified the calculation is correct here:
http://colormine.org/delta-e-calculator/cie2000

I read the linked resource when creating this library. Does something specific exist in the paper which refutes the accuracy of the implementation?

(By the way, de00 gives inaccurate results when there is a hue shift of 180/360 degrees. this is mentioned in the paper)

from deltae.

zschuessler avatar zschuessler commented on July 17, 2024

I just noticed in your original message you said the difference in color is extremely small. Are you using the CIELAB color space? The colors are drastically different. Bright green vs bright pink.

You can also tell the colors are polar opposites in hue because the colors are inverted in A/B values.

from deltae.

ddsol avatar ddsol commented on July 17, 2024

Well, I fed all the test data in that paper through this function and it looks like the results are the same.
The difference in the second color is extremely small in both cases. But it is a flip at the 180Β° mark.

Also, the paper only tests colors with a very small color difference (R<2.5) so the discontinuity is small there. But as you can see above, the discontinuity is huge.

That said, DeltaE is apparently just really bad at diffing colors where dE>5 or so. So, if (dE00(a,b)>5) return NaN; πŸ˜„.

From the paper:

Though the CIEDE2000 color-difference equations are only applicable for small color differences, it is preferable that data for testing software implementations should include at least a few large color differences

from deltae.

zschuessler avatar zschuessler commented on July 17, 2024

Momma always said nothing was perfect πŸ˜‰

Reviewing this, it would be cool if discontinuity was calculated. Too specific of a use case and time consuming for it to be a good addition I think.

Cheers!

from deltae.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.