| [mmopenrec] [Up] [mmregmin] | Connected Operators |
| User Feedback |
| f | Image Gray-scale (uint8 or uint16) image |
| Bc | Structuring Element
Default: (connectivity). |
| y | Image Binary image |
mmregmax creates a binary image y by computing the regional maxima of f, according to the connectivity defined by the structuring element Bc. A regional maximum is a flat zone not surrounded by flat zones of higher gray values.
a = uint8([...
5 10 10 10 10 10 10;...
5 9 6 18 6 5 10;...
5 9 6 18 6 8 7;...
5 9 9 15 9 7 10;...
5 9 9 15 12 10 10;...
5 5 5 5 10 10 10]);
b = mmregmax(a)
b =
0 0 0 0 0 0 0
0 0 0 1 0 0 0
0 0 0 1 0 1 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
c = mmregmax(a,mmsebox)
c =
0 0 0 0 0 0 0
0 0 0 1 0 0 0
0 0 0 1 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0

function y=mmregmax_equ( f, bc) if (isa(f,'uint8')) k = 255; else k = 65535; fminus = mmsubm(f,1); g = mmsubm(fplus,mminfrec(fminus,f,bc)); y = mmunion(mmthreshad(g,1),mmthreshad(f,k));
| [mmopenrec] [Up] [mmregmin] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |