Convert an RGB image to grayscale with luminance-weighted color channels for classical computer vision preprocessing.