how to xor image to 255 value?

1 Ansicht (letzte 30 Tage)
ARJUN K P
ARJUN K P am 3 Jan. 2016
Kommentiert: Image Analyst am 1 Sep. 2018
Hai, aa= imread('lena.bmp')
next how i xor the 'aa' to value 255?
aa xor 255
  2 Kommentare
juveria fatima
juveria fatima am 1 Sep. 2018
how can xor first pixel with second and second with third and so on (for binary image)
Image Analyst
Image Analyst am 1 Sep. 2018
juveria, you've already accepted an answer to that here in this link

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Image Analyst
Image Analyst am 3 Jan. 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)

Weitere Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by