I have a binary image and want to replace all the zeroes with 1s and all the 1s with zeroes. ( so that the binary image is totally opposite to original image). How can i do that?

 採用された回答

Michal
Michal 2019 年 6 月 29 日
編集済み: Michal 2019 年 6 月 29 日

0 投票

% B original binary matrix
% B_ new binary matrix
B_ = ~B;

その他の回答 (1 件)

製品

リリース

R2018b

タグ

質問済み:

2019 年 6 月 29 日

コメント済み:

2019 年 6 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by