CAN'T USE THE FUNCTION watershed in matlab for image segmentation??

2 ビュー (過去 30 日間)
Arun kumar Periyasamy
Arun kumar Periyasamy 2021 年 6 月 2 日
編集済み: Arun kumar Periyasamy 2021 年 6 月 2 日
L =watershed(I);
i am not able to run this statement . it shows me an error
Execution of script watershed as a function is not supported:
C:\Users\kk\Documents\MATLAB\watershed.m
Error in arun (line 9)
L =watershed(I);
help me to reslove this ??

採用された回答

Geoff Hayes
Geoff Hayes 2021 年 6 月 2 日
Arun - is watershed a function or a script? In this case, I suspect that it is a script and does ot have a function signature. What does this code at C:\Users\kk\Documents\MATLAB\watershed.m look like?
Or, perhaps you are trying to use the watershed function from the Image Processing Toolbox and your function at C:\Users\kk\Documents\MATLAB\watershed.m is shadowing the other. If this is true, then you may want to renmae your function/script or remove it altogether.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with Image Processing Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by