2013-08-02 19 views
-1

我在我的程序中使用imfreehand,當我來到erosion,我得到了以下錯誤(我沒有粘貼整個錯誤):imfreehand數據類型的問題

Error using imerode 
Expected input number 1, IM, to be one of these types: 

numeric, logical 

Instead its type was imfreehand. 

看來那麼我提取的區域將是imfreehand類型?有沒有辦法轉換爲上述數據類型?或者,有什麼辦法來解決這個問題?

謝謝。

回答

0

你可以看看this的帖子。我的解釋是,您使用與生成的自由對象關聯的句柄創建一個蒙版,然後使用該蒙版用於其他目的。