xor value always get zero
이전 댓글 표시
img=img('lena.bmp');
i=10;
j=10;
img(i,j)
the result is 158
after i xor with 255
xor(img(i,j),255)
the result is wrong... always get zero...
how to get correct xored value?
댓글 수: 1
the cyclist
2016년 2월 10일
I don't think I would say that the result is wrong. I would say that the xor function doesn't do what you think it does.
Can you tell us what you need your function to actually do?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!