数学建模社区-数学中国

标题: matlab 读取图像文件时的问题 [打印本页]

作者: 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 的帖子

呵呵 ,耐心点找应该有的
   
作者: 851354452    时间: 2011-11-30 08:15
这么好的东西?太棒了
作者: asdfgfdsa    时间: 2013-9-13 13:54
怎么读取文件图片




欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) Powered by Discuz! X2.5