Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 MATLAB 中加载图像:
f=imread('fulldirectory'); m=size(f); printf('m');
当我尝试运行 MATLAB 时,它会向我显示此错误:
"Error using imread (line 349)"
谁能帮我?
imread 函数需要一个文件格式,例如 jpg。
您可以使用以下 MATLAB 代码之一。
f = imread('ngc6543a.jpg'); f = imread('ngc6543a', 'jpg');
此外,如果您想知道图像的尺寸,只需从代码的第二行中省略分号 (;)。MATLAB 将显示图像的大小。
m=size(f)
MATLAB 有一些测试图像,例如 ngc6543a.jpg,您可以在 MATLAB 中尝试我的代码。