Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watershed documentation example is broken: #6

Open
mottelet opened this issue Nov 27, 2023 · 1 comment
Open

watershed documentation example is broken: #6

mottelet opened this issue Nov 27, 2023 · 1 comment

Comments

@mottelet
Copy link
Collaborator

--> 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
Copy link
Owner

Fixed by updating the help file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants