michelf / sim-daltonism

A color blindness simulator for Mac and iOS
256 stars 18 forks source link

Deuteranopia: strong color tint towards pink in neutral shades of gray #18

Open suit4 opened 4 years ago

suit4 commented 4 years ago

After testing SD and comparing it to the output of the Photoshop color blindness simulation, we think that neutral grays should look the same in all simulations. The Deuteranopia setting seems to have a strong tint to pink in the neutral grays. See attached image bottom right.

sim_daltonism_vs_photoshop

michelf commented 4 years ago

This indeed appears suspicious. The filter algorithm Sim Daltonism uses has been developed a long time ago by the HCIRN (which no longer exists). Others tools based on the same algorithm will exhibit the same pinkish tint for light grays, for instance Coblis. I haven't investigated too much to find a solution, or how correct this is or not.

I could switch to another algorithm. I've been told once the algorithm I use is better than most though, despite its flaws. I certainly welcome opinions (especially scientific opinions) on this topic. If someone wants to share tweaks to the code I'll certainly look at the result too.

habere-et-dispertire commented 4 years ago

I have seen the same issue. Firefox is using a new algorithm for colour vision deficiency simulations. The matrix transformation work it is based on appears to be freely available and physiologically based:

https://www.inf.ufrgs.br/~oliveira/pubs_files/CVD_Simulation/CVD_Simulation.html https://bugzilla.mozilla.org/show_bug.cgi?id=1655053

Perhaps this can provide some new direction.

parkersweb commented 2 years ago

I'm having a similar problem - originally wondered if this was related to the new MacBook Pro screen, or the fact that I'm using OSX Monterrey. Interestingly though using a screenshot of the same page and passing it through jsColorBlindSimulator http://mapeper.github.io/jsColorblindSimulator/ doesn't seem to suffer the same problem?

Original screenshot:

Screenshot 2021-11-03 at 21 53 55

Output of jsColorBlind Simulator using protanopia setting:

Screenshot 2021-11-03 at 22 07 10

(oddly the 'non-commercial only' algorithim is slightly more pink - but not as pink as the one below:

Screenshot of Sim Daltonism output:

Screenshot 2021-11-03 at 21 58 24

Screenshot of Firefox emulation:

Screenshot 2021-11-03 at 22 00 06