.BMP 位图图像中包含哪些信息?
我正在尝试使用十六进制编辑器读取 .bmp
位图图像的像素,但该位图图像有一个头文件或其他文件。我只需要每个像素的 R、G、B 值,就像我在 Matlab 中使用 imread
函数时得到的值一样。位图的头文件有多长或者像素值位于哪里?
I am trying to read pixels of a .bmp
bitmap image using hex editor, but this bitmap image has a header file or something. I just need the R,G,B values of every pixel, like what I get in Matlab when I use the imread
function. How long is the header file of a bitmap or where are the value of pixels located?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
.BMP
文件?维基百科对标头字段提供了非常好的描述:http://en.wikipedia.org/wiki/BMP_file_format.BMP
file? Wikipedia gives a very good description of header fields: http://en.wikipedia.org/wiki/BMP_file_format另请参阅此。您可以从中找到关于位图。
Also see this. From that you can find About Bitmaps.