Distance transform test program.

Why does it sometimes give [-1 -1]?