Replace elements in binary matrix
古いコメントを表示
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?
採用された回答
その他の回答 (1 件)
Walter Roberson
2019 年 6 月 29 日
B_ = imcomplement(B);
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!