简体   繁体   English

获取BMP二进制图像的LSB

[英]Getting a LSB of a BMP binary image

i was already able to convert a BMP image into binary memory stream but im confused with detecting LSB in pixel values.. 我已经能够将BMP图像转换为二进制memory stream但是却与检测像素值中的LSB感到困惑。

I have the byte[] stream as '10101011101010101010010' ... .. .. 我的byte[] stream'10101011101010101010010' ..... ..

First is there a way that i can filter this binary stream to pixel values and detect LSB ? 首先,有一种方法可以将二进制流过滤为像素值并检测LSB?

If you want to read / write the Least Significant Byte to use the bitmap to hide information you will need to load the bmp data into an image, then access the pixel-data using GetPixel() . 如果要读/写最低有效字节以使用位图隐藏信息,则需要将bmp数据加载到图像中,然后使用GetPixel()访问pixel-data。 The BMP File itself might use RLL or some other compression so you cannot access the pixel data directly. BMP文件本身可能使用RLL或其他某种压缩方式,因此您无法直接访问像素数据。

For detecting LSB in an image, it largely depends on the algorithm used, some are harder to detect as others. 要检测图像中的LSB,很大程度上取决于所使用的算法,有些像其他算法则更难检测。 Do you have the description of the LSB-variant that might be in that image? 您是否对该图像中可能存在的LSB变量有描述?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM