How to change the colour of the backgroud

Hi, i rotate an image and i want to change the black background to white. Thanks in advance.

 採用された回答

Laurent
Laurent 2013 年 8 月 23 日

0 投票

It depends on what type of image you have, but let's say it is a 8-bit grayscale image. In that case you can do the following:
thisim(thisim==0)=255;
where thisim contains your image.
If you would like a more specific answer, please provide us your image.

1 件のコメント

Ren
Ren 2013 年 8 月 26 日
Thank u,it works^^

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

その他の回答 (0 件)

カテゴリ

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

タグ

質問済み:

Ren
2013 年 8 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by