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!