Manifold learning and image segmentation