Fisheye calibration algorithm

Hey,
Is some one know what is the algorithm at the base of fisheye::calibrate method?
Thanks