Dynamic programming
Sample result
(note horizontal
streaks)
[Intille & Bobick]