Figure 1 The distance transform of a simple shape. Note that we are using the `chessboard' distance metric.