Coupled Splines for Sparse Curve Fitting

Icíar LLoréns Jover, Thomas Debarre, Shayan Aziznejad, Michaël Unser · DOI

Abstract

We formulate as an inverse problem the construction of sparse parametric continuous curve models that fit a sequence of contour points. Our prior is incorporated as a regularization term that encourages rotation invariance and sparsity. We prove that an optimal solution to the inverse problem is a closed curve with spline components. We then show how to efficiently solve the task using B-splines as basis functions. We extend our problem formulation to curves made of two distinct components with complementary smoothness properties and solve it using hybrid splines. We illustrate the performance of our model on contours of different smoothness. Our experimental results show that we can faithfully reconstruct any general contour using few parameters, even in the presence of imprecisions in the measurements.

Introduction

In computer graphics and image processing, converting discrete, noisy edge points into continuous parametric curves—a process known as vectorization—is essential for creating scalable graphics like fonts and logos. However, traditional methods often struggle with noise, non-uniform smoothness (where sharp corners meet smooth arcs), and rotation variance. Standard sparse-promoting techniques can be sensitive to the orientation of the coordinate system, leading to inconsistent results if the input image is rotated. This paper addresses these challenges by framing curve fitting as a variational inverse problem using a novel rotation-invariant regularization.

Methodology

The RI-TV Norm and Representer Theorem

The core innovation is the Rotation-Invariant Total Variation (RI-TV) norm. Unlike standard TV, which treats coordinate components independently, RI-TV uses a mixed $(TV-\ell_2)$ norm that couples the $x$ and $y$ components. This coupling ensures that the curve's singularities (knots) occur at the same parameter values for both coordinates, making the representation mathematically independent of the coordinate axes' rotation.

A key theoretical contribution is the Representer Theorem, which proves that the global minimizer of this optimization problem in infinite-dimensional space is guaranteed to be a periodic spline with a finite number of knots. This justifies the use of B-splines as the basis for numerical implementation.

Hybrid Splines

To handle contours with varying degrees of smoothness, the model is extended to Hybrid Splines. The curve is modeled as a sum of two components: a low-order spline (e.g., linear) to capture sharp kinks and a high-order spline (e.g., cubic) for smooth arcs.

B-spline kernels of different orders (alpha) used as basis functions.

The optimization process automatically balances these components to represent complex shapes with minimal parameters. The problem is discretized using B-splines and solved efficiently via the Alternating Direction Method of Multipliers (ADMM).

Key Results

Rotation Invariance

The primary advantage of the RI-TV norm is its robustness to rotation. In experiments using synthetic "M-shaped" contours, the knot locations and the total number of knots ($K$) remained identical regardless of the rotation angle applied to the input data.

Demonstration of rotation invariance: knot locations and fitting error remain identical after a 40-degree rotation.

As shown in the figure above, both the original and rotated contours achieve the same Quadratic Fitting Error (QFE = 12.09) with exactly 20 knots. This confirms that the RI-TV norm is the only mixed TV norm that maintains true rotation invariance.

Sparsity and Performance

The proposed framework naturally adheres to the principle of parsimony, finding the simplest curve (fewest knots) that fits the data within a given error tolerance. Compared to standard knot-removal algorithms, this method achieves significantly lower fitting errors for the same number of parameters. For instance, on the noisy "M" shape, the RI-TV approach outperformed standard methods by an order of magnitude in terms of QFE (12.09 vs 153.47). Furthermore, on complex real-world data like the Daft Punk logo, the hybrid model successfully reconstructed the shape using only 139 knots for over 2,700 data points.

Conclusion

This work provides a theoretically grounded and practically robust framework for sparse curve fitting. By coupling coordinate components through the RI-TV norm, the authors achieve rotation invariance and superior sparsity. While the model currently requires some manual hyperparameter tuning and is limited to 2D, it sets a strong foundation for future extensions into 3D point cloud processing and automated spline order selection.

Summary updated

BibTeX
@article{jover2022coupled,
  author = {Icíar LLoréns Jover and Thomas Debarre and Shayan Aziznejad and Michaël Unser},
  title = {{Coupled Splines for Sparse Curve Fitting}},
  journal = {IEEE Trans. Image Process.},
  year = {2022},
  doi = {10.1109/tip.2022.3187286},
}
Figure