Converting specific pixel of the image to white

11 views (last 30 days)
Hello Sir,
I have an image. I want to convert speicfic pixel of (range from 172 to 226 pixel ) to white. ?

Answers (1)

Walter Roberson
Walter Roberson on 8 Dec 2020
mask = 172 <= YourImage & YourImage <= 226;
YourImage(mask) = 255;

Community Treasure Hunt

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

Start Hunting!