Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

CIEDE2000 algorithm incorrect #225

Open
jcafaro10 opened this issue Aug 29, 2018 · 2 comments
Open

CIEDE2000 algorithm incorrect #225

jcafaro10 opened this issue Aug 29, 2018 · 2 comments

Comments

@jcafaro10
Copy link

I think this line is wrong:
CGFloat RT = -2 * sqrt(pow(MeanCPrime, 7) / (pow(MeanCPrime, 7) + pow(25.0, 7))) * sin((60.0 * M_PI/180)* exp(-1 * pow((MeanCPrime - (275.0 * M_PI/180)) / (25.0 * M_PI/180), 2)));

I think it should be this:

CGFloat RT = -2 * sqrt(pow(MeanCPrime, 7) / (pow(MeanCPrime, 7) + pow(25.0, 7))) * sin((60.0 * M_PI/180)* exp(-1 * pow((MeanHPrime - (275.0 * M_PI/180)) / (25.0 * M_PI/180), 2)));

Based on https://pdfs.semanticscholar.org/969b/c38ea067dd22a47a44bcb59c23807037c8d8.pdf

@jcafaro10
Copy link
Author

Actually maybe I'm wrong...it's hard to follow the paper

@rnitta
Copy link

rnitta commented Dec 17, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants