how to access and perform manipulations on bits of 24 bit RGB image

조회 수: 3 (최근 30일)
vishwanatha B.A
vishwanatha B.A 2016년 4월 6일
답변: Image Analyst 2016년 4월 7일
I want to apply functions to the (8)bits of pixels of an image. how could i do that with respect to Gray image and also especially with RGB image.
And i need to hide RGB mosaic image pixels inside another RGB target image at specified bits. can anyone could help me!!!

답변 (2개)

Walter Roberson
Walter Roberson 2016년 4월 7일
If the 24 bits per pixel are 8 bits of Red, 8 of Green, 8 of Blue, then just imread() the image, as that is a very common format.
I suspect your question is how to convert the data to "binary". For that see dec2bin()

Image Analyst
Image Analyst 2016년 4월 7일
See attached example on LSB watermarking.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by