Add Ani's max volume ellipse code, and integrate it into segmentation