The ecological statistics of good continuation: multi-scale Markov models for contours