MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   我可以给imstack2vectors Matlab函数哪种格式? (https://www.labfans.com/bbs/showthread.php?t=24240)

poster 2019-12-10 20:48

我可以给imstack2vectors Matlab函数哪种格式?
 
因此,我已将RGB照片导入到Matlab工作区中。它说它具有值:。表示它具有类uint8。它的名称是:prettyPic。因此,当我尝试执行以下操作时:

%使用函数imstack2vectors将prettyPic转换为矢量格式。

[prettyPic, L] = imstack2vectors(prettyPic); 我收到以下错误:

???类型为'uint8'的输入参数的未定义函数或方法'imstack2vectors'。

我一直在搜索有关Matlab帮助的google,甚至试图给'imstack2vectors'不同类型的变量,只是发现它们没有用。

所以问题是我应该使用哪种类型的图片来提供“ imstack2vectors”。以及如何将需要的图片转换为该格式/类。

我是Matlab的入门者,所以我们将不胜感激!



[B]回答:[/B]
[INDENT] ???类型为'uint8'的输入参数的未定义函数或方法'imstack2vectors'。

[/INDENT]意味着最有可能在您的Matlab路径上不存在函数imstack2vectors (即Matlab无法找到该名称的函数)。

输入which imstack2vectors以查看Matlab是否可以在路径上找到它。如果未返回任何内容,但是您知道该函数在硬盘驱动器上的位置,则可以在Matlab中将目录更改为该函数所在的位置,然后再次运行命令。

通常,您可能想了解有关[URL="http://www.mathworks.com/help/techdoc/matlab_env/br5tea6-6.html"]向Matlab path添加功能的知识[/URL] 。



[url=https://stackoverflow.com/questions/4479907]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 01:09

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