matlab imread()返回值问题 在线等!!!!!

来源:百度知道 编辑:UC知道 时间:2024/06/01 11:58:58
在matlab中用imread()函数读取图片,得到的矩阵是个矩阵,怎么是个3维的呢,什么格式的图片是二维的矩阵(我读取的图片是灰度图片,格式.jpg)
当对图像矩阵做奇异值分解是,出错,提示如下
??? Function 'svd' is not defined for values of class 'uint8'.

Error in ==> svd at 27
builtin('svd', varargin{:});
求高人,怎么解决!!!

The following are format-specific syntaxes for Cursor files and Icon files.

[...] = imread(..., idx) CUR or ICO reads in one image from a multi-image icon or cursor file. idx is an integer value that specifies the order that the image appears in the file. For example, if idx is 3, imread reads the third image in the file. If you omit this argument, imread reads the first image in the file.