conversion of pixel values in a gray scale image

1 次查看(过去 30 天)
I have a gray scale image . I want to convert all the zero pixel values to 255. is there any function to do so?

采纳的回答

Anand
Anand 2013-6-17
im(im==0) = 255;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by