필터 지우기
필터 지우기

how to xor image to 255 value?

조회 수: 8 (최근 30일)
ARJUN K P
ARJUN K P 2016년 1월 3일
댓글: Image Analyst 2018년 9월 1일
Hai, aa= imread('lena.bmp')
next how i xor the 'aa' to value 255?
aa xor 255
  댓글 수: 2
juveria fatima
juveria fatima 2018년 9월 1일
how can xor first pixel with second and second with third and so on (for binary image)
Image Analyst
Image Analyst 2018년 9월 1일
juveria, you've already accepted an answer to that here in this link

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2016년 1월 3일
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)

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by