[Top] [Up] [Prev] [Next] [Up] [Basic Concepts] [Demonstrations] [Functions] SDC Morphology Toolbox V1.1 15Jan02

mmse2hmt - Create a Hit-or-Miss Template (or interval) from a pair of structuring elements.


Synopsis
Iab = mmse2hmt( A, Bc )
Input
A: Structuring element. Left extremity.
Bc: Structuring element. Complement of the right extremity.
Output
Iab: Interval.
Description
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.
Examples
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 
Equation

Flat interval:

equation

See Also
mmendpoints - Interval to detect end-points.
mmfreedom - Control automatic data type conversion.
mmhomothick - Interval for homotopic thickening.
mmhomothin - Interval for homotopic thinning.
mminfcanon - Intersection of inf-generating operators.
mmintershow - Visualize an interval.
mmse2interval - Create an interval from a pair of structuring elements.
mmsupcanon - Union of sup-generating or hit-miss operators.
mmthick - Image transformation by thickening.
mmthin - Image transformation by thinning.

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