Soft-margin classification of object manifolds