Fix from_cv_mat