How to convert the color image into binary sequence?
Show older comments
I am M.Tech scholar and working on watermarking. I imported color immage of size 512*512 and i want to convert that color image into binary sequence and that sequence has used in embedding of watermark.
Then, how to convert image into binary sequence?
Accepted Answer
More Answers (2)
gonzalo Mier
on 2 Mar 2019
1 vote
I suppose you have a filter of color of [100,150,30], so to convert the image M you can do:
sol = squeeze( M(:,:,1) > 100 & M(:,:,2) > 150 & M(:,:,3) > 30 )
1 Comment
Walter Roberson
on 2 Mar 2019
This would be a form of conversion from color to black and white, which is not what was being asked about.
Image Analyst
on 2 Mar 2019
1 vote
I do that in my attached demo.
For more info, click the tag on the right that says "watermark".
Categories
Find more on Watermarking in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!