Learning segmentation from point trajectories