Learning to Detect Good Keypoints to Match Non-Rigid Objects in RGB Images

Welerson Melo, Guilherme Potje, Felipe Cadar, Renato Martins, Erickson R. NascimentoarXiv 2022

Finding reliable correspondences between images is a cornerstone of computer vision, powering everything from 3D reconstruction to object tracking. While we've become quite good at matching rigid objects, non-rigid deformations—like the folds in a t-shirt or the bending of a page—remain a significant challenge. Most traditional and even modern learned detectors prioritize repeatability (finding the same point again), but as the authors of this paper argue, a repeatable point isn't necessarily a matchable one.

TL;DR

This paper introduces a novel CNN-based keypoint detector specifically designed to handle non-rigid deformations in RGB images. By training a network to predict "Matching Heatmaps" derived from actual successful descriptor matches, the method achieves a 20 percentage point improvement in Mean Matching Accuracy over state-of-the-art detectors on deformable object datasets.

What Problem Does This Paper Address?

Traditional keypoint detectors like SIFT or Harris corners look for specific geometric structures (blobs, corners). Modern learned methods often try to maximize repeatability across different viewpoints. However, in non-rigid scenarios, surfaces warp and textures distort. A point that looks like a "good" corner in one frame might be part of a repetitive pattern or an edge that becomes ambiguous when the object deforms, leading to incorrect matches.

The authors identify a gap: most existing methods for non-rigid matching either focus solely on the descriptor (how to describe a patch) or rely on depth information (RGB-D). There is a lack of detectors optimized to find points that are inherently likely to produce correct matches under non-rigid strain using only standard RGB images.

Methods

The core idea is to move from "detecting repeatable points" to "detecting matchable points."

  1. The Architecture: The authors use a 4-level U-Net as the backbone, trained within a Siamese framework. This allows the network to see an "anchor" image and its transformed versions simultaneously during training.
  2. Generating Ground Truth: To train the network, they use a "bootstrap" approach. They take an existing detector-descriptor pair and apply it to image pairs transformed by random homographies and Thin Plate Spline (TPS) warps. TPS is key here, as it simulates realistic non-rigid deformations. They only keep the "true" matches (verified by the known transformation) to create a Matching Heatmap (MH).
  3. Weighted Heatmaps: Not all matches are equal. The MH is weighted so that locations where descriptors were correctly matched across multiple variations receive higher scores.
  4. Multi-Term Loss Function: The network is optimized using a combination of three losses:
  5. Cosine Similarity: To align the shape of the predicted score map with the ground-truth MH.
  6. L2 Loss: To ensure the magnitudes of the scores are accurate.
  7. Peakiness Loss: A specialized term that forces the network to produce sharp, localized detection peaks rather than blurry regions.
Overview of the training framework, showing how Matching Heatmaps are generated from true correspondences.

Datasets

  • Training: The model was trained on synthetic non-rigid warps applied to a subset of the dataset from the DEAL paper [19], consisting of 10k image pairs.
  • Evaluation: The method was tested on three challenging real-world datasets of deforming objects: Kinect1, Kinect2, and DeSurT. These contain color images of 11 different deforming objects under various lighting and viewpoint conditions.

Key Insights and Ideas

  • Matchability > Repeatability: The paper demonstrates that a high Repeatability Rate (RR) does not guarantee good matching. For instance, the ASLFeat detector has a high RR but lower Matching Accuracy on these datasets compared to the proposed method.
  • Synthetic to Real Transfer: Even though the network is trained entirely on synthetic TPS warps, it generalizes remarkably well to real-world physical deformations.
  • Descriptor Agnostic: The detector is trained using a specific descriptor (like DEAL or ASLFeat) but acts as a "plug-and-play" module that can improve the performance of various other descriptors by providing them with better points to describe.

Key Results

The quantitative results are striking. When paired with the ASLFeat descriptor, the proposed detector increases the Mean Matching Accuracy (MMA) from 0.60 to 0.80—a 20 percentage point jump—compared to using ASLFeat's own native detector.

Qualitative comparison showing how the proposed detector (top) produces more correct matches (green lines) and fewer mismatches (red lines) than SIFT or ASLFeat on a deforming shirt.

In object retrieval tasks, the detector performed on par with SIFT, which is significant given that SIFT was the method used to train the non-rigid descriptors it was paired with. This suggests the detector is robust even for non-matching specific tasks.

Limitations and Future Work

The authors acknowledge a few key limitations:

  • Base Detector Dependency: The training process currently requires a "base" detector to generate the initial set of salient points. This might introduce a bias toward the types of features the base detector prefers.
  • Bias: The network might become biased toward specific local characteristics of the base detector used during the bootstrap phase.

Future Direction: The team plans to investigate ways to remove the dependency on a base detector entirely, potentially learning to detect keypoints directly from the descriptor space in an end-to-end fashion.

Summary updated

BibTeX
@misc{melo2022learning,
  author = {Welerson Melo and Guilherme Potje and Felipe Cadar and Renato Martins and Erickson R. Nascimento},
  title = {{Learning to Detect Good Keypoints to Match Non-Rigid Objects in RGB Images}},
  year = {2022},
  eprint = {2212.09589},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.09589},
}
Figure