Replace elements in binary matrix
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 29 de Jun. de 2019
B_ = imcomplement(B);
Categorías
Más información sobre Image Arithmetic en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!