In response to the observation the average pixel color is surprisingly brown, I'll take today's opportunity to induct some of my fellow HNers into today's lucky 10,000 by linking Technology Connections's "Color is weird" video ( https://www.youtube.com/watch?v=wh4aWZRtTwU ).
Thank you for the video, that was really interesting. I had no idea that brown was orange, and that makes me wonder how those darker colors are perceived by people with many more categories of colors in their minds. If simply naming brown makes it seem like a unique color, I imagine the abrupt switchover that I experienced watching that video would happen for more color-discerning people as well when they see "Dark Blue" or "Dark Purple" or "Dark Red".
Or... maybe you have be both discerning and naive in regards to it for the illusion to work.
I think the author is on the right track just needs to refine the assumptions a bit. Not sure if the method actually tests whether we perceive the oranges as more orange with red bags. Things like too small of a sample size, lack of any statistical analysis, uncontrolled lighting conditions, not controlling for phone camera, and simplistic color analysis (human eye is much more complex). Also lack of applicability to…
Warning, always convert your colors to from sRGB to Linear RGB before doing any math on them, then convert them back to sRGB afterwards for displaying them. sRGB is the familiar color space you all know and love, it's what your display uses, and it's what has those RGB numbers between 0 and 255. But it's not a linear color space. First think of values as being between 0 and 1 instead of 0 and 255. To change sRGB to L…
Even better, convert to HSL or CieLAB. RGB is not at all how our eyes see things.
For blending, linear RGB is a much better choice than HSL. In HSL, a slightly cool gray (230°, 5%, 50%) mixed with an intense warm yellow (40°, 100%, 50%) might create a hot pink (315°, 52.5%, 50%). Not what your eyes expect.
This is one of those things I knew on some subconscious level but never really thought about until now. Of course the red mesh makes them look more orange - it's basically grocery store color grading. Honestly kinda love how simple the trick is. No fancy tech, no marketing wizardry - just "put red stuff over orange stuff, profit." Makes me wonder what other dumb little visual hacks are happening around me that I'm not noticing at all.
>The average pixel was not what I expected. The average pixel doesn't look correct because human vision does not interepret shadowed colors as different colors. We first guess at the shadows, and then do some kind of inverse mapping from the shaded color space to the illuminated one before we "perceive a color". This is why the black,blue/white,gold dress illusion exists.
It's kinda wild how much our brain just auto-corrects for lighting without us realizing it
Am i mossing something or is this really a blog post saying that if you put something red in a picture and compare it to the same thing without red, then the picture with more red, looks, well, more red?
It's like science fair energy for adults: "Ok but how much more red, exactly?"
This is interesting because it shows us how a programmer thinks of a problem vs. how a psychologist or neuroscientist would think of this problem and highlights the lack of "human-ness" in programmer thinking. I'm no fan of schools forcing STEM students to study boring electives but this is a prime example of why that might be useful. The entire premise of the post is wrong - average pixel value has nothing to do wit…
See Josef Albers’ Interaction of Color or the recent and more approachable Interacting With Color.