Figure 24:
Chain code with 12 directions.