Multi-class constrained normalized cut with hard, soft, unary and pairwise priors and its applications to object