CV: convert images to grayscale before further processing.