How to convert the color image into binary sequence?
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (2)
gonzalo Mier
el 2 de Mzo. de 2019
1 voto
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 comentario
Walter Roberson
el 2 de Mzo. de 2019
This would be a form of conversion from color to black and white, which is not what was being asked about.
Image Analyst
el 2 de Mzo. de 2019
1 voto
I do that in my attached demo.
For more info, click the tag on the right that says "watermark".
Categorías
Más información sobre Watermarking en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!