Phase Transitions and the Perceptual Organization of Video Sequences