| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] | SDC Morphology Toolbox V1.1 15Jan02 |
Iab = mmse2hmt( A, Bc ) A: Structuring element. Left extremity. Bc: Structuring element. Complement of the right extremity. Iab: Interval. mmse2hmt creates the Hit-or-Miss Template (HMT), also called interval [A,Bc] from the structuring elements A and Bc such that A is included in the complement of Bc. The only difference between this function and mmse2interval is that here the second structuring element is the complement of the one used in the other function. The advantage of this function over mmse2interval is that this one is more flexible in the use of the structuring elements as they are not required to have the same size.
B1img = logical(uint8([0 1 0; 1 1 0; 0 0 1]))
B1img =
0 1 0
1 1 0
0 0 1
B2img = logical(uint8([1 0 0; 0 0 0; 0 0 0]))
B2img =
1 0 0
0 0 0
0 0 0
B1 = mmimg2se(B1img);
B2 = mmimg2se(B2img);
i = mmse2hmt(B1,B2);
mmintershow(i)
ans =
0 1 .
1 1 .
. . 1
|

| [Top] [Up] [Prev] [Next] | [Up] [Basic Concepts] [Demonstrations] [Functions] |
|
| Copyright (c) 1998-2002 by SDC Information Systems | ||