.BMP 位图图像中包含哪些信息?

发布于 2025-01-03 03:38:05 字数 151 浏览 6 评论 0原文

我正在尝试使用十六进制编辑器读取 .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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

痕至 2025-01-10 03:38:05

.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

明天过后 2025-01-10 03:38:05

另请参阅。您可以从中找到关于位图

Also see this. From that you can find About Bitmaps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文