M-File Help: edgelist View code for edgelist

edgelist

Return list of edge pixels for region

eg = edgelist(im, seed) is a list of edge pixels (Nx2) of a region in the image im starting at edge coordinate seed=[X,Y]. The edgelist has one row per edge point coordinate (x,y).

eg = edgelist(im, seed, direction) as above, but the direction of edge following is specified. direction == 0 (default) means clockwise, non zero is counter-clockwise. Note that direction is with respect to y-axis upward, in matrix coordinate frame, not image frame.

[eg,d] = edgelist(im, seed, direction) as above but also returns a vector of edge segment directions which have values 1 to 8 representing W SW S SE E NW N NW respectively.

Notes

Reference

See also

ilabel


 

© 1990-2014 Peter Corke.