Weakly Supervised Segmentation by A Deep Geodesic Prior