r/AskComputerScience • • Jan 21 '19

Why are red objects so pixelated in low quality videos?

Post image
142 Upvotes

13 comments sorted by

28

u/code_donkey Jan 22 '19

as /u/dandroid-exe said, its the video compression taking advantage of the fact that our eyes are great at detecting green and shitty at detecting red and blue. So the green channel for that video might be 1080p, but the red and blue channel are probably 720p or 480p, without a huge effect. Heres some example images to give you an idea:

  1. Heres a fruit bowl with no reduction:

  2. Here it is again but with 1/10 of the red information, and 1/10 of the blue information (green untouched)

  3. Here is the previous image but with some interpolation (ie. a smoothing effect)

  4. Here is the fruit bowl again, but this time 1/10 green, 1/10 blue (red untouched. smoothing applied)

  5. Again, but this time 1/10 green, 1/10 red (blue untouched, smoothing applied)

This technique is great with green dominant images, but mediocre for red or blue dominant

1

u/tsojtsojtsoj Jan 22 '19

Could it be that this method works differently well for different people?

"The ratio of M and L cones varies greatly among different people with regular vision (e.g. values of 75.8% L with 20.0% M versus 50.6% L with 44.2% M in two male subjects)"

(M is green, L is red)

https://en.wikipedia.org/wiki/Cone_cell#Shape_and_arrangement

3

u/code_donkey Jan 22 '19

Great question, and I'm interested in the answer!

I have severe protanomaly which means my L cones cones detect just a few nanometers off from what my M cones detect. Despite that, the blurring of the green channel is extremely noticable where as blurring of the red channel is quite subtle, as is the case for normal people, which leads me to think that the "noticability" of the effect is all about the "post-processing" of the information in the brain. My L and M cones nearly overlap but the brain still treats them entirely differently.

2

u/kristopolous Jan 22 '19

Here's a rather simplified version ... the third image is effectively the same process as the second image except that in the second image the blue channel got blurred to 10x10 blocks and in the 3rd, the green channel got blurred to 10x10 blocks.

3

u/dandroid-exe Jan 22 '19

These are some great examples!

As for why green dominant images work better, it’s partially because our eyes are more sensitive to green light than other colors and, as a result, single chip video cameras have twice as many green photosites. We’re very green-centric animals

105

u/dandroid-exe Jan 21 '19

This is a result of chroma sub-sampling in video codecs. Video typically has red, green, and blue channels to make a full color image. Turns out you can get away with having full res green, and half res blue + half res red and it’s pretty hard to tell because the green channel creates the illusion of sharpness for our eyes. (This is just a particular example, there are several chroma resolution schemes - every codec is different)

The weaknesses of this way of compressing video tend to show up in high saturation reds for one reason or another. See also: bright red text against black, like in a movie logo.

7

u/[deleted] Jan 22 '19

Wow, what an excellent answer! Thanks for this, makes perfect sense.

7

u/dandroid-exe Jan 22 '19

Thanks! It’s a great question, this red pixelation is everywhere now that we consume so much media through streaming h264

6

u/nm_ghost Jan 22 '19

It's even a little bit more complex: videos are most often encoded in YCbCr color space (very similar, and sometimes used interchangeably with YUV), but the general principle is as you described: we notice smaller changes in luminosity than in color, so we encode color information with lower resolution, to save bandwidth.

2

u/GuyFromRussia Oct 21 '21

Wow, this subreddit is the best! Thanks!

0

u/Yaahallo Jan 22 '19

My guess was https://en.wikipedia.org/wiki/Bayer_filter

Not sure how it ties in with other answers

1

u/WikiTextBot Jan 22 '19

Bayer filter

A Bayer filter mosaic is a color filter array (CFA) for arranging RGB color filters on a square grid of photosensors. Its particular arrangement of color filters is used in most single-chip digital image sensors used in digital cameras, camcorders, and scanners to create a color image. The filter pattern is 50% green, 25% red and 25% blue, hence is also called BGGR, RGBG, GRGB, or RGGB.It is named after its inventor, Bryce Bayer of Eastman Kodak. Bayer is also known for his recursively defined matrix used in ordered dithering.


[ ^PM | Exclude ^me | Exclude from ^subreddit | FAQ / ^Information | ^Source ] Downvote to remove | v0.28

1

u/vagaliki Nov 11 '23

Star wars 1977 was not shot on a camera with a Bayer filter. Shot on color film (which may have some other effects).

The correct answer is about video compression and chroma sub sampling