I am dealing with images and would like to determine if a set of pixels are closer to white or black.
So given a set of colors/pixles, how does one det
Convert the colour to grayscale (a grayscale colour has all 3 RGB components equal, see convert color image to grayscale).
Check if grayscale is closer to black (0) or white (255)