Skip to main content
11 votes
Accepted

Why does checkerboard pattern on a computer screen appear with a yellowish tint?

Because your monitor is not properly calibrated. On my screen at home the top and bottom parts have the same hue. At my office though, the top part tends to looks a bit yellow compared to the bottom ...
Julien Guertault's user avatar
7 votes
Accepted

Why replicating the higher bits of RGB565 when converting to RGBA8888?

Without replicating the bits the LSBs will be 0, so for the maximum value of 0x1f (max for 5 bits) it would expand to 0xf8 when converted to 8 bit. What you want is 0xff so the range of 0x00->0x1f ...
PaulHK's user avatar
  • 2,322
7 votes

Why replicating the higher bits of RGB565 when converting to RGBA8888?

There's actually a reasonably good mathematical reason for doing bit replication: First note that the n-bit string, $N$, actually represents the value $\frac{N}{2^n-1}$ and we want to produce the m-...
Simon F's user avatar
  • 4,306
4 votes

Change particular color in an image

In order to replace a color with another color, you need some sort of distance metric between the colors and a function for calculating the blending based on that distance. Finding a distance ...
user1118321's user avatar
  • 3,421
4 votes
Accepted

What determines the color gamut of a display?

The physical imaging elements of your monitor define your gamut. So things like how bright the elements can be as well as the color spectra of the color elements define the gamut. But, thats quite the ...
joojaa's user avatar
  • 8,437
2 votes

Pixel density / color channel depth ratio for dithered gradients

There has been quite some research into this using Barten contrast sensitivity function. It is the current formula behind the Dolby Perceptual Quantizer as featured in SMPTE 2084 and HDR10. This, ...
troy_s's user avatar
  • 318
2 votes

Change particular color in an image

Assuming you are looking to transform a particular component (r, g or b) of any color, this can be easily done by simple vector/matrix multiplication. The introduction on this page (Chapter 6.1) - ...
Erik's user avatar
  • 131
2 votes
Accepted

Is there a way to resize an image without creating new colors in the output image?

A nearest-neighbor resize will do what you ask but I am not certain it will give you much smaller tiles. It is quite likely that the tiles made from the original image are smaller simply because they ...
Olivier's user avatar
  • 1,585
1 vote

YUV to HSV to RGB issues

Think about it this way. To calculate YCbCr of (1, 0, 0), you'll end up with Y = 0.299, Cb = -0.16873, Cr = 0.5. If you take the magnitude of the chroma channels (...
user1118321's user avatar
  • 3,421

Only top scored, non community-wiki answers of a minimum length are eligible