[mmSe] [Up] [mmBoolean] | Data Types |
The hit-or-miss template (also called interval) is defined by two structuring elements: one associated to the 'hit' template, and the other associated to the 'miss' template. A hit-or-miss template can be build with the function mmse2hmt and can be visualized with mmintershow.
>>> print mmintershow(mmhomothin())
0 0 0 . 1 . 1 1 1
>>> A = mmbinary([[0,1,0],[1,0,1],[0,0,0]])
>>> Bc = mmbinary([[0,0,0],[0,1,0],[0,0,0]])
>>> T = mmse2hmt(A,Bc)
>>> print mmintershow(T)
. 1 . 1 0 1 . . .
mmintershow | Visualize an interval. |
mmhomothin | Interval for homotopic thinning. |
mmse2hmt | Create a Hit-or-Miss Template (or interval) from a pair of structuring elements. |
[mmSe] [Up] [mmBoolean] | ![]() |
Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |