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!