Skip to content

watershed documentation example is broken: #6

@mottelet

Description

@mottelet
--> 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions