I'm trying to convert 24bit (8R, 8G, 8B) into 8bit (RRRGGGBB) colors
I understand the basic concept of scaling the color bytes down and adding them together (after shifting). i.e. given RGB(255,254,253) I would take 255/32*32 + 254/32*4 + 253/64 and this would give me in 111,111,11b (white).
This works pretty well for pictures with a lot of red and green but once blue starts to appear, things get really thrown off. The blues start to look more turquoise or purple than before.
I'm not trying to do dithering but rather to find a better mapping between RGB and 8bit.
I considered converting RGB to HSV and then to 8 bit but I'm not sure how to convert from HSV to 8bit either, the H byte does not correspond to RRRGGGBB. Even if it did, I couldn't get black and white. Is there a way to weight the H,S,V bytes (like how I did with RGB) to get what I want? Or should I just stick with finding a better mapping between RGB straight to 8bit