Watershed

13 Ansichten (letzte 30 Tage)
Usama Javed
Usama Javed am 25 Jan. 2012
Kommentiert: sheno39 am 30 Okt. 2013
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);

Akzeptierte Antwort

Chandra Kurniawan
Chandra Kurniawan am 25 Jan. 2012
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 Kommentar
sheno39
sheno39 am 30 Okt. 2013
i have an error:
Error using watershed (line 33) WATERSHED needs at least 2 arguments
Error in oversegmentatn (line 16) L = watershed(gradmag);

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu DICOM Format finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by