In your very interesting tutorial on adjusting wide angle lens perspective distortion the results don't correct the building distortion. I used photogrammetry for some years and in order to retain more accurate representation of the subject matter after making the adjustments shown it is also necessary to adjust the image's vertical dimension. Possibly this isn't considered important because the tutorial is not about photogrammetry but is perhaps of interest anyway.