This figure illustrates the eight compass templates for sequential pruning.
.
from morph import *
I0=mmendpoints('HOMOTOPIC')
I1=mminterot(I0,45)
I2=mminterot(I0,90)
I3=mminterot(I0,135)
I4=mminterot(I0,180)
I5=mminterot(I0,225)
I6=mminterot(I0,270)
I7=mminterot(I0,315)
print mmintershow(I0)
. 1 . 0 1 0 0 0 0
print mmintershow(I1)
0 . 1 0 1 . 0 0 0
print mmintershow(I2)
0 0 . 0 1 1 0 0 .
print mmintershow(I3)
0 0 0 0 1 . 0 . 1
print mmintershow(I4)
0 0 0 0 1 0 . 1 .
print mmintershow(I5)
0 0 0 . 1 0 1 . 0
print mmintershow(I6)
. 0 0 1 1 0 . 0 0
print mmintershow(I7)
1 . 0 . 1 0 0 0 0