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!