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!