Camera calibration using adaptive segmentation and ellipse fitting for localizing control points