How to convert the color image into binary sequence?
显示 更早的评论
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?
采纳的回答
更多回答(2 个)
gonzalo Mier
2019-3-2
1 个投票
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 个评论
Walter Roberson
2019-3-2
This would be a form of conversion from color to black and white, which is not what was being asked about.
Image Analyst
2019-3-2
1 个投票
I do that in my attached demo.
For more info, click the tag on the right that says "watermark".
类别
在 帮助中心 和 File Exchange 中查找有关 Watermarking 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!