How to remove certain pixels in an image and apply change on grayscale image?

2 views (last 30 days)
Hello,
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.
Regards.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!