Statistics for Medical Image Segmentation using Level Sets