Weakly Supervised Bayesian Shape Modeling from Unsegmented Medical Images