Azzera filtri
Azzera filtri

how to xor image to 255 value?

8 visualizzazioni (ultimi 30 giorni)
ARJUN K P
ARJUN K P il 3 Gen 2016
Commentato: Image Analyst il 1 Set 2018
Hai, aa= imread('lena.bmp')
next how i xor the 'aa' to value 255?
aa xor 255
  2 Commenti
juveria fatima
juveria fatima il 1 Set 2018
how can xor first pixel with second and second with third and so on (for binary image)
Image Analyst
Image Analyst il 1 Set 2018
juveria, you've already accepted an answer to that here in this link

Accedi per commentare.

Risposta accettata

Image Analyst
Image Analyst il 3 Gen 2016
Did you try the xor() function?
grayImage = imread('moon.tif');
subplot(1,2,1);
imshow(grayImage);
output = xor(grayImage, 255);
subplot(1,2,2);
imshow(output)

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by