conversion of pixel values in a gray scale image

1 view (last 30 days)
I have a gray scale image . I want to convert all the zero pixel values to 255. is there any function to do so?

Accepted Answer

Anand
Anand on 17 Jun 2013
im(im==0) = 255;

More Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!