尝试使用某些tiff文件运行imshow时出现以下错误:
??? Error using ==> imageDisplayValidateParams>validateCData at 114
Unsupported dimension
Error in ==> imageDisplayValidateParams at 31
common_args.CData = validateCData(common_args.CData,image_type);
Error in ==> imageDisplayParseInputs at 79
common_args = imageDisplayValidateParams(common_args);
Error in ==> imshow at 199
[common_args,specific_args] = ...
Error in ==> CellArea at 6
imshow('A1 x20.tiff')
Run Code Online (Sandbox Code Playgroud)
最初imread
,imshow
我使用来将图像数据存储在matlab变量中,当该数据不起作用时,我使用它来直接获取带有文件名的图像。错误消息是相同的。
我要分析的问题图像是1032x778的tiff文件。我使用Paint制作了一个样本tif图像,该函数没有问题。是否有人知道导致这些错误的原因以及如何显示图像?谢谢
这是其中一张图片的infinfo输出,根据要求
Filename: 'A1 x20.tiff'
FileModDate: '14-Oct-2013 15:49:26'
FileSize: 3211714
Format: 'tif'
FormatVersion: []
Width: 1032
Height: 778
BitDepth: 32
ColorType: 'truecolor'
FormatSignature: [73 73 42 0]
ByteOrder: 'little-endian'
NewSubFileType: …
Run Code Online (Sandbox Code Playgroud)