MATLAB Answers

how to delete the white pixel(255) from grey scale image

13 views (last 30 days)
I have to delete only 225 value white pixel from gray scale image. But i don't know how to identified each pixel from image and check if it is 255 and assign it's value to zero. Please help me

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 29 Dec 2013
Edited: Azzi Abdelmalek on 29 Dec 2013
Image Analyst
Image Analyst on 29 Dec 2013
Why do you have both g and GRAY? You don't need two. And we're back to Azzi's original answer
Why didn't you follow his advice instead of doing things with for loops and two copies of the same image?

Sign in to comment.

More Answers (0)


Community Treasure Hunt

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

Start Hunting!