2010-12-18 10 views
1

所以我已經將RGB照片導入Matlab工作區。它說它有價值:< 200x200x3 uint8>。這意味着它有類uint8。它的名字是:prettyPic。因此,當我嘗試執行以下操作時:哪種格式可以給imstack2vectors Matlab函數?

%使用函數imstack2vectors將prettyPic轉換爲矢量格式。

[prettyPic, L] = imstack2vectors(prettyPic); 

我得到以下錯誤:

???未定義函數或方法'imstack2vectors'輸入 類型'uint8'的參數。

我在谷歌周圍搜索Matlab幫助,甚至試圖給'imstack2vectors'不同類型的變量只發現沒有作品。

所以問題是我應該給'imstack2vectors'提供什麼類型的圖片。我怎樣才能將這張圖片轉換成格式/類別。

我是Matlab中的begginer,所以任何幫助將不勝感激!最有可能的功能imstack2vectors沒有您的MATLAB路徑上存在

回答

2

??? Undefined function or method 'imstack2vectors' for input arguments of type 'uint8'.

手段(即Matlab的找不到這個名字的函數)。

輸入which imstack2vectors以查看Matlab是否可以在路徑上找到它。如果它什麼都不返回,但是你知道硬盤上的函數在哪裏,你可以在Matlab中將目錄改變到函數所在的位置,然後再次運行你的命令。

一般而言,您可能想了解adding functions to the Matlab path

+0

您可能是對的我得到這個:>> which imstack2vectors 'imstack2vectors'not found。 – necker 2010-12-18 20:21:33

相關問題