Video Segmentation Using a Bayesian Online EM Algorithm