Yaron's movie analysis segmentation code