Abstract
Image warping is a fundamental operation in computer vision, yet traditional methods like the Thin-Plate Spline (TPS) often struggle with a trade-off between flexibility and stability. This paper introduces CoupledTPS, a framework that overcomes these limitations by iteratively coupling multiple simple transformations into a single, powerful warp. By integrating a novel warping flow to prevent interpolation-induced blur and a semi-supervised learning scheme to leverage unlabeled data, CoupledTPS achieves state-of-the-art results in rotation correction, rectangling, and portrait de-warping while maintaining real-time performance.
Introduction
Image warping is essential for tasks ranging from horizon straightening (rotation correction) and panorama stitching (rectangling) to correcting wide-angle lens distortions in selfies (portrait de-warping). The industry standard for non-linear warping, the Thin-Plate Spline (TPS), faces a persistent "flexibility vs. stability" bottleneck. While a small number of control points makes the warp too rigid for complex distortions, increasing the control points often leads to instability and "local distortions," where naturally straight lines become unnaturally wavy.
Furthermore, training deep learning models for these tasks typically requires massive amounts of manually labeled data, which is expensive and time-consuming to produce. CoupledTPS addresses these challenges through a combination of iterative architectural design and semi-supervised learning.
Methodology
1. Iterative Coupled TPS
Instead of attempting to predict a complex set of high-density control points in a single pass, CoupledTPS employs an iterative search strategy. The model predicts a manageable set of points, updates the image's internal latent representation, and then predicts a subsequent set. This "coupling" mechanism allows the model to achieve high flexibility and precision without the chaotic instability associated with single-stage high-density TPS models.
2. Warping Flow Integration
A common pitfall in iterative warping is the loss of image quality; each iteration typically requires re-sampling pixels (interpolation), which accumulates blur. To solve this, the authors developed a warping flow bridge. This mathematical framework integrates all iterative steps into a single coordinate map. Consequently, the image is sampled only once at the final stage, preserving crisp textures and high visual fidelity.
3. Semi-Supervised Dual Transformation
To reduce reliance on labeled datasets, the framework introduces a semi-supervised consistency constraint. Using unlabeled data, the model processes both an original tilted image and a graphically augmented version (e.g., an image with a known additional rotation). The model is then forced to ensure that the correction results for both versions are mathematically consistent. This allows the model to learn from over 7,000 unlabeled images, significantly boosting performance.
Experimental Results
The model was evaluated across several specialized benchmarks, including DRC-D and MS-COCO for rotation, and DIR-D and UDIS++ for rectangling.
Quantitative Performance
On the DRC-D rotation dataset, CoupledTPS achieved a PSNR of 22.29, significantly outperforming the previous state-of-the-art (DRC at 21.02). The semi-supervised dual transformation alone contributed an improvement of approximately 0.16 dB, validating the effectiveness of learning from raw, unlabeled data.
Qualitative Advantages
Qualitative analysis demonstrates that CoupledTPS excels at preserving geometric structures. Unlike vanilla TPS models that often "bend" straight lines, CoupledTPS maintains the integrity of architectural features such as building edges and lamp poles. Additionally, the warping flow integration prevents the significant PSNR drops typically seen in iterative models due to interpolation artifacts.
Efficiency
Despite its iterative nature, the model is highly efficient. By updating a low-resolution latent condition rather than re-encoding the entire image at every step, the model achieves an inference speed of approximately 38ms on a modern GPU, making it suitable for real-time applications.
Conclusion
CoupledTPS represents a significant advancement in image warping by proving that multiple "weak" TPS warps coupled together are more effective and stable than a single "strong" warp. While the current semi-supervised approach relies on graphic augmentation—which is currently most effective for rotation correction—future work aims to generalize these augmentation techniques for more complex distortions like rectangling. The framework's ability to combine high flexibility, structural stability, and computational efficiency sets a new benchmark for the field.
Summary updated