| [mmflood] [Up] [mmcloserec] | Connected Operators |
| User Feedback |
| f | Image Gray-scale (uint8 or uint16) or binary image |
| SEQ | String
Default: Values: "OC" or "CO". |
| b | Structuring Element
Default: |
| bc | Structuring Element
Default: |
| n | Double Non-negative integer.
Default: (number of iterations). |
| y | Image
Same type of |
mmasf creates the image y by filtering the image f by n iterations of the close by reconstruction and open by reconstruction alternating sequential filter characterized by the structuring element b. The structure element bc is used in the reconstruction. The sequence of opening and closing is controlled by the parameter SEQ. 'OC' performs opening after closing, and 'CO' performs closing after opening.


function y=mmasfrec_equ( f, SEQ, b, bc, n )
switch SEQ
case 'OC',
y = f;
for i=1:n
nb = mmsesum(b,i);
y = mmcloserec(y,nb,bc);
y = mmopenrec(y,nb,bc);
end;
case 'CO',
y = f;
for i=1:n
nb = mmsesum(b,i);
y = mmopenrec(y,nb,bc);
y = mmcloserec(y,nb,bc);
end;
end;
| [mmflood] [Up] [mmcloserec] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |