Watershed
2 次查看(过去 30 天)
显示 更早的评论
I am having an error in watershed code.. i-e
L = watershed(gradmag);
error:- ??? Attempt to execute SCRIPT watershed as a function: C:\Users\Asad\Documents\MATLAB\watershed.m
Error in ==> watershed at 12 L = watershed(gradmag);
0 个评论
采纳的回答
Chandra Kurniawan
2012-1-25
Hi, Just simple mistake.
You save your script with name watershed
however, watershed is built-in function in Matlab.
Try to rename your script and it will works.
1 个评论
sheno39
2013-10-30
i have an error:
Error using watershed (line 33) WATERSHED needs at least 2 arguments
Error in oversegmentatn (line 16) L = watershed(gradmag);
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!