The internal parameter calibration based on sub-pixel threshold segment algorithm