A multiphase level set framework for variational motion segmentation