Constrained watershed method to infer morphology of mammalian cells in microscopic images