M-File Help: imser View code for imser

imser

Maximally stable extremal regions

label = imser(im, options) is a segmentation of the greyscale image im (HxW) based on maximally stable extremal regions. label (HxW) is an image where each element is the integer label assigned to the corresponding pixel in im. The labels are consecutive integers starting at zero.

[label,nreg] = imser(im, options) as above but nreg is the number of regions found, or one plus the maximum value of label.

Options

'dark' looking for dark features against a light background (default)
'light' looking for light features against a dark background

Example

im = iread('castle_sign2.png', 'grey', 'double');
[label,n] = imser(im, 'light');
idisp(label)

Notes

Reference

"Robust wide-baseline stereo from maximally stable extremal regions", J. Matas, O. Chum, M. Urban, and T. Pajdla, Image and Vision Computing, vol. 22, pp. 761-767, Sept. 2004.

See also

ithresh, igraphseg


 

© 1990-2012 Peter Corke.