It uses shooting parameters and high order polynomial fitting curve to reach the goal of curved surface being stretched and corrected.
Correction before
After correction