conversion of pixel values in a gray scale image

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일

0 개 추천

im(im==0) = 255;

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

질문:

BV
2013년 6월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by