# Function iase2hmt

namespace: morph iase2hmt

# Synopse

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

• Iab = iase2hmt(A, Bc)
• Iab: Interval
• A: Structuring Element Left extremity.
• Bc: Structuring Element Complement of the right extremity.
```1. from numpy import *
2.
3. def iase2hmt(A, Bc):
4.
5.
6.     Iab = (A,Bc)
7.
8.     return Iab```

# Description

iase2hmt 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 iase2interval is that here the second structuring element is the complement of the one used in the other function. The advantage of this function over iase2interval 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

## Example 1

```01. from ia870 import iase2hmt
02. from ia870 import iabinary
03. from ia870 import iaintershow
04.
05.
06. B1 = iabinary([
07.    [0,1,0],
08.    [1,1,0],
09.    [0,0,1]])
10. B2 = iabinary([
11.    [1,0,0],
12.    [0,0,0],
13.    [0,0,0]])
14. i = iase2hmt(B1,B2)
15. print iaintershow(i)```
```0 0 .
0 0 .
. . 0
```