I have a grayscale image (right) and have converted it into a logical image (left). The original image has reflections and I have removed them by converting the image to black and white, applying bwareaopen and subtracting the two images. But I have been unable to apply the result on the grayscale image by subtacting them.
What I need as output is the same grayscale image without these reflections. Please help me out in that.