How to change colour (black to white) in binary image?

24 ビュー (過去 30 日間)
Veronika
Veronika 2017 年 3 月 5 日
コメント済み: eton lin 2017 年 4 月 27 日
Dear all,
I have this binary image:
I would like to convert the colours black into white and white into black. Is it possible? I also attach this binary image. Thank you for your answers.
  1 件のコメント
eton lin
eton lin 2017 年 4 月 27 日
Veronika, you can use NOT operator: imshow(~BW)

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

採用された回答

Guillaume
Guillaume 2017 年 3 月 5 日
編集済み: Guillaume 2017 年 3 月 5 日
yourbwimage = ~yourbwimage
Simple as that, or
yourbwimage = logical(1 - yourbwimage)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by