$ 0 0 Can you add a link to an input image and show the output? Having trouble to understand your goal. You might be able to turn the gray parts into black and use that as a mask for when you colorize the image.