How to take the 8th bit in lsb
1 次查看(过去 30 天)
显示 更早的评论
I am applying LSB for image steganography and I have got the binary representation of an rgb image i. e. 10001010 but I m not getting any idea of how to use the 8th bit to hide data in it anybody plz help me.
3 个评论
Jan
2018-5-31
The readers cannot guess, what "binary representation of an rgb image i. e. 10001010" exactly is. Is this a logical vector, a decimal number or a character vector? Did you search in the forum for "lsb steganography" already? You will find a lot of corresponding threads.
I strongly recommend to remove the "ASAP" from the question. Pushing the readers is counterproductive, because it sounds impolite.
回答(1 个)
Walter Roberson
2018-6-1
You can use bitset() and bitget() .
To extract the lsb you can use mod(YourImage,2) . To set new lsb you can do
YourImage - mod(YourImage,2) + NewLSBValue
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Encryption / Cryptography 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!