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;

1 件のコメント

BV
BV 2013 年 6 月 17 日
thank u ) i will try it.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeImages についてさらに検索

質問済み:

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