Hi Pablo,
Before going any further, may I recommend you to have a look on these posts?
Curved-Output-after-initial-processing
Camaras-descalibradas-despues-del-procesamiento-inicial-Resuelto-
Please try the methods proposed in these articles and let us know if it anyhow helped.
Best