Difference between APCA Lc and DeltaE2000 #108
-
As I understand, APCA Lc is a perceptually uniform measure of lightness contrast. In terms of perceptually uniform measure of lightness contrast, another popular measure is DeltaE2000. Recently, there is another measure being discussed, the DeltaE based on OKLab. As I understand, this is just a euclidean distance in the OKLab color space. When I was testing things out with APCA, I noticed that compared to DeltaE2000 or DeltaEOKLab, APCA Lc tended to become smaller in the comparison between darker colors than in comparison between lighter colors. I was wondering why this may be. It is clear that APCA Lc and DeltaE formulas would never fully align. DeltaE formulas do not account for polarity, because there is no concept of foreground vs background. So my guess is that difference between APCA Lc and DeltaE arise from these differences designed specifically around text readability. However, I don't know for certain, so I'd love to know more about the difference between APCA and DeltaE2000. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi @TaigaYamada I’m not in the lab but here’s a short answer first: deltaE2000 may be the “most complicated LAB based” color difference method… …but… That’s still leaving much to be desired. L*a*b* is not a full color appearance model, and is limited. L* is based on Munsell value, which is itself derived from experiments using diffuse reflecting paint tiles in a very controlled environment. And:
None of that is supra threshold contrast.The contrasts we are interested in for things like text for reading, are far away from the JND visibility threshold. And the human vision system (HVS) has significantly different response characteristics Supra threshold for high spatial frequency stimuli (text). That accounts for some of the differences. The other factor: those models are often based on studies where the stimuli is a diffuse reflecting patch of very low spatial frequency. But reading text on a self illuminated display is none of that, it’s very high spatial frequency and the light is being emitted/beamed straight into your eyes, often polarized, and with a gamma curve and things like anti-aliasing all in play. And for higher spatial frequencies, it is the spatial characteristics (weight or line thickness) that drives contrast, not color (above a critical level). That’s the simple overview, the minutia and nuance goes very deep here. Please feel free to follow up. |
Beta Was this translation helpful? Give feedback.
-
Hi @TaigaYamada Table row 1: Yes Table row 2: Table row 3: ∆E2000 has some consideration of the context of the color it is being tested against. And Table row 4: While CIELAB is not quite a color appearance model, it is nevertheless one of the early attempts at perceptual uniformity in a color space. ∆E2000 isn't a model by itself, but a difference calculation for use with CIELAB. Those other models have their own color difference methods, namely euclidian distance if they are uniform. "What's a few deltas between colors..."You might find this paper interesting, as it speaks to sample data and CIEDE2000: ciede2000noteCRNA.pdf APCA is a contrast appearance model, and by itself not a color appearance model. SACAM (in development) is the larger project that APCA is a part of. (SACAM is "Sjuv Accessible Color Appearance Model"). ∆E2000 is very weighted for hue/chroma. APCA is much more achromatic, as achromatic luminance is what is required for readability. Some examples in the next post showing when the ∆E value gets higher, the meaningfullness of that value is questionable. And also how the ∆E2000 value does not relate to readable contrast.
Hmmm... ∆E2000 was designed to work with CIELAB specifically, which has some issues as we know. OKLab was designed to fix some of those issues itself. Thus, I'm not sure how an unchanged ∆E2000 will work with OKLab which is different on a number of levels, including the actual values. At the very least, the constants used with ∆E2000 would need to be adjusted.
It's interesting that Bjorn used CAM16 to generate the training data... that partly explains some questions I've had. I know of some who are using OKLab with APCA replacing the L. Discussion of contrast vs colorBut also: "color distance" is more of a measurement (insofar as color, which is only a perception, can be "measured"). Contrast is a perception, and not a function of color distance. Here are some visual examples. ContextIn this display, both the yellow dots are exactly the same color comming out of the display, as are the grey swuares they are on. Do they look the same? The context of the shadow makes the yellow dot under the shadow appear brighter than the dot not in shadow. In the same image, and even close to each other. Edge DetectionAPCA is focused on the "perception of edge contrast" as opposed to the "perception of a given color". And this is a non-trivial difference. Take a look at this row of low spatial frequency gradients: Except there are actually no gradients in this row whatsoever. Each grey patch is the same exact grey within its rectangle, but at every edge adjacent to the next patch, the human vision system "enhances" the edge, by ramping up or ramping down the grey leading up to the edge. The edge itself is a very high spatial frequency, connected to the low spatial of the rectrangle. The effect of the ramp up/down leading to the edge is called "Mach bands", and it is a perception entirely within the human vision system. Spatial ResolutionHere's an example of how spatial characteristics are the main driver of contrast. In the following graphic, all of the grey text samples are at the exact same color. Thus they all have the same color distance. Are they all equally readable? As spatial freq. rises above about 6 to 8 cycles per degree, contrast sensitivity plummets. Taking a 2px thick line and reducing in 50% to 1px results in a drop in contrast sensitivity by over an order of magnitude. |
Beta Was this translation helpful? Give feedback.
-
Revisit of the OPHaving posted the several recent posts, I re-read the OP, and I think I may have gotten something slightly off. 1) OK ∆EI misread initially, with the impression someone was applying CIEDE2000 (∆E2000) to OKlab, but on re-reading I see just euclidian distances, i.e. This is a simple euclidian distance—the straight line between two colors. But as discussed above, this is not contrast for the purpose of readability. The simple euclidian distance is only good for a perceptually uniform cartisian color space. And then we might ask, perceptually uniform on which axes? As I implied in some of what I wrote above, there are really more than three axes defining color appearance. 2) APCA ∆E...
It takes more than two colors in most cases to determine the expected contrast. More than would be convenient for a designer's guidelines, or for a public standard. The WCAG 2.x tests onlhy a pair, so the initial APCA is set for just a pair, with some reasonable assumptions built in regarding expected use cases, and the optimum repsonse for those use cases. A bright environment is the most challenging for reading on a self-illuminated display (e-ink is a different story, as of course, is traditional print). And in a bright environment, dark color pairs become increasingly unreadable. And in our empirical studies, we found the "worst expected common case" is a bright office or in shade on a sunny day. And here, dark colors are negatively affected. But light colors are not negatively affected to such a degree in darker environments. L*, WCAG 2.x, and several others, end up over reporting contrast for dark color pairs, and in a way that results in unreadable values, especially for WCAG 2x contrast math. SolutionTo accomodate the "general worst common case" of use for devices and displays, keep things to a simple pair of colors, align to the center of contrast on a display, and so forth, the curves are optimized for the expected environments. As such, in comparison to non-contrast oriented models, APCA does not over-report dark color pairs. 3) Color Chiropractor?
I'd suggest they will never align at all — they are both designed for and serving very different purposes. Please don't hesitate to follow up if you have additional questions. |
Beta Was this translation helpful? Give feedback.
ANNEX • ∆E2000 vs APCA
∆E2000 versus APCA Lc value (a low contrast comparison).
To cap all this off here are some examples of ∆E2000, which is heavilly weighted for chroma and hue, and comparisons are made to the APCA contrast Lc value which is largely achromatic, as achromatic luminance is what the Visual Word Form Area uses for letter pair/word detection.
In the examples below, the ∆E2000 values were from Bruce Linbloom's site, and the APCA examples are from the SAPC research tool which shows LC values less than 1, though APCA can round to nearest whole number, which I what I'll mention below.
Here's the center test target as used below, but at a high contrast of Lc 75 so you can see th…