[mmseshow] [Up] [mmsetrans] Structuring Elements

mmsesum
N-1 iterative Minkowski additions

Synopsis

function NB = mmsesum ( B , N )

Input

B Structuring Element

Default: 3x3 elementary cross

N Double Non-negative integer.

Default: 1

Description

mmsesum creates the structuring element NB from N - 1 iterative Minkowski additions with the structuring element B.

Examples

b = mmimg2se([1 1 1; 1 1 1; 0 1 0]);
Warning: converting image from double to binary uint8
mmseshow(b)
ans =
     1     1     1
     1     1     1
     0     1     0
b3 = mmsesum(b,3);
mmseshow(b3)
ans =
     1     1     1     1     1     1     1
     1     1     1     1     1     1     1
     1     1     1     1     1     1     1
     1     1     1     1     1     1     1
     0     1     1     1     1     1     0
     0     0     1     1     1     0     0
     0     0     0     1     0     0     0
b = mmsedisk(1,'2D','CITY-BLOCK','NON-FLAT');
mmseshow(b)
ans =
 -2147483647           0 -2147483647
           0           1           0
 -2147483647           0 -2147483647
mmseshow(mmsesum(b,2))
ans =
 -2147483647 -2147483647           0 -2147483647 -2147483647
 -2147483647           0           1           0 -2147483647
           0           1           2           1           0
 -2147483647           0           1           0 -2147483647
 -2147483647 -2147483647           0 -2147483647 -2147483647

Equation

See also

mmdil Dilate an image by a structuring element.
mmseshow Display a structuring element as an image.
mmopen Morphological opening.
mmclose Morphological closing.
mmero Erode an image by a structuring element.
mmseunion Union of structuring elements
[mmseshow] [Up] [mmsetrans]