How to XOR the pixel values of image with a matrix containing binary numbers?
1 view (last 30 days)
Show older comments
Hello., I would like to Xor the pixel values of image with a matrix having binary numbers.(i.e.,25*1 of binary numbers)
Till now i have pixel values read from a image.,
I=imread('lena.jpg');
c = [12 146 25 36 43];
r = [104 156 29 12 89];
pixels=impixel(I,c,r);
Waiting for ur response.,,Thankssssss in advance.,
3 Comments
Min Min
on 19 Aug 2020
I could not read the comments because the connection was bad at that time but now I can see your attachement code.
Thanks a lot sir
Accepted Answer
Image Analyst
on 14 Mar 2014
I don't know what that means. Do you have 8 bit binary values and you want to do a bitwise XOR of each of those numbers with the binary image? So if you had 25 binary numbers, you'd have 25 images where each pixel of each image is XORed with the number in the list, and then you do this for all 25 images?
Or do you just want to extract the pixel values of the image at those 25 (row, column) locations from the image? So you'd have 25 pixel values?
6 Comments
Image Analyst
on 23 Mar 2014
You should ask your guide for help because I think that you didn't correctly grasp what he tried to tell you or you're not conveying it to me correctly or you're doing something weird like trying to use steganography to hide a feature vector in an image for some strange reason. He would know more precisely the steps you should take.
Image Analyst
on 24 Mar 2014
You can use steganography to hide data in an image. I don't have any tutorial for you on that topic but you can do a web search and come up with lots of information on it. I just suggested it and now you're requesting it. I'm not sure that you need it so I'm not going to spend time programming up something for you that you may not end up needing. I've attached a watermarking demo that I already have, for whatever that's worth. It's sort of related. Watermarking puts images into other images, and they can be hidden or visible.
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!