linmatsas 发表于 2010-11-26 23:38

matlab 读取图像文件时的问题

我在用imread函数读取BMP格式的图片时出现了一点问题……提示:、Bitfield compression not supported
是不是MATLAB读不了这样的图片呢…………哪位大神告诉我该怎么读取这样的文件,要么用其他软件换一下格式么?

曲线救国 发表于 2010-11-27 09:40

用imread不可以么?BMP肯定没问题啊

linmatsas 发表于 2010-11-27 11:44

回复 曲线救国 的帖子


    就是这么提示的…………难道是图片太大了么…………

caoshiwang 发表于 2010-11-27 13:47

不可能啊,你把那个错误的提示数到百度中,搜一下

madio 发表于 2010-11-27 16:34

我按照楼上说的到谷歌搜索了一下,发现确实有相关的内容:
The ability to read bitfield compressed bitmap files is not supported by the IMREAD function in MATLAB.

To work around this issue, use the attached function to read the file:

1. Download the attached file named open_bitfield_bmp.m
2. Place it in your project directory.
3. Call the function “open_bitfield_bmp” with the image filename as the argument.

For example:
my_image = open_bitfield_bmp('test_image.bmp');
This will display the image and return it as an array.

linmatsas 发表于 2010-11-27 18:22

回复 caoshiwang 的帖子


    还是管理员的谷歌牛呀~~~我在百度搜了就没搜着…………

linmatsas 发表于 2010-11-27 18:24

回复 madio 的帖子


    管理员就是厉害,主要是当时不想看英语的…………现在只能硬着头皮看了…………呵呵~~~看来真是要努力学习英语了~~谢谢管理员大人~~哈哈

guomenghui2 发表于 2010-11-27 22:27

管理员真是很厉害,我见识到了。

caoshiwang 发表于 2010-11-29 11:38

呵呵呵……学习了就知道了

caoshiwang 发表于 2010-11-30 12:27

回复 linmatsas 的帖子

呵呵 ,耐心点找应该有的
   
页: [1] 2
查看完整版本: matlab 读取图像文件时的问题