MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   请问matlab怎样读入tif文件 (https://www.labfans.com/bbs/showthread.php?t=4386)

xin_shou 2008-09-08 16:27

请问matlab怎样读入tif文件
 
求助:在读入tif文件时发生错误
我这样输入命令:imread('trees.tif');
结果
??? LZW-compressed TIFF images are not supported.

Error in ==> imagesci\private\readtif at 32
[X, map, details] = rtifc(filename, args.index);

Error in ==> imread at 306
[X, map] = feval(fmt_s.read, filename, extraArgs{:});

是不是因为我的tif文件中每个象素占了32比特,要通过转换生成16比特格式,但我不会转换,
请问怎么读入tif文件呢?
谢谢!

xin_shou 2008-09-08 17:09

回复: 请问matlab怎样读入tif文件
 
原来是不支持LZW压缩的原因,在PHOTOSHOP中处理一下就行了

hualiangzi 2008-09-10 16:54

回复: 请问matlab怎样读入tif文件
 
用PHOTOSHOP还搞鬼啊?我们不是讲MATLAB的吗?以后有精力了再研究研究MATLAB,用MATLAB做线形拟合怎么样?

xin_shou 2008-09-11 08:52

回复: 请问matlab怎样读入tif文件
 
不会,我也是初学者,我是用photoshop把tif文件改成无压缩形式,然后才把tif文件读出来了


所有时间均为北京时间。现在的时间是 11:35

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.