tanchinluh / IPCV

Scilab Image Processing and Computer Vision Module
GNU General Public License v3.0
1 stars 1 forks source link

watershed documentation example is broken: #6

Open mottelet opened 7 months ago

mottelet commented 7 months ago
--> S = imread(fullpath(getIPCVpath() + "/images/three_objects.png"));

--> Sgray = rgb2gray(S);
Input image is not a RGB image, output remained the same as input.

--> Sb = im2bw(Sgray,0.1);

--> Sd = imdistransf(Sb);

--> dist = Sd > 0.4;

--> [markers,n] = imlabel(dist);

--> markers(1:5,1:5) = 255;

--> Sw = imwatershed(S, markers);
at line    39 of function imwatershed ( /Users/mottelet/git/IPCV/macros/imwatershed.sci line 44 )

First argument must be a 3 channels image.
--> imshow(Sw,hsvcolormap(3));

Undefined variable: Sw
tanchinluh commented 7 months ago

Fixed by updating the help file