So I've got a project to convert an image to black and white manually by altering the argb values with an algorithm. I've tried averaging the RGB values and I come out with an almost completely grayscale image but there's still hints of color in it. Anyone have any algorithm examples to convert a pixel in aRGB to greyscale manually?
This is what I've been doing so far:
//Apply the filter
reds = ((reds+greens+blues)/3);
greens = ((reds+greens+blues)/3);
blues = ((reds+greens+blues)/3);