Abstract
We show how to train a Convolutional Neural Network to assign a canonical orientation to feature points given an image patch centered on the feature point. Our method improves feature point matching upon the state-of-the art and can be used in conjunction with any existing rotation sensitive descriptors. To avoid the tedious and almost impossible task of finding a target orientation to learn, we propose to use Siamese networks which implicitly find the optimal orientations during training. We also propose a new type of activation function for Neural Networks that generalizes the popular ReLU, maxout, and PReLU activation functions. This novel activation performs better for our task. We validate the effectiveness of our method extensively with four existing datasets, including two non-planar datasets, as well as our own dataset. We show that we outperform the state-of-the-art without the need of retraining for each dataset.
Introduction
In computer vision, feature points are the fundamental building blocks for tasks such as 3D reconstruction, SLAM, and image stitching. To match a point across different images, descriptors are extracted from local patches. However, these descriptors are often sensitive to rotation. To achieve rotation invariance, a "canonical orientation" is typically assigned to each feature point, allowing the patch to be normalized before description.
Traditionally, methods like SIFT rely on handcrafted rules, such as identifying the dominant gradient direction. While effective for planar surfaces, these methods often struggle with complex 3D geometries, lighting changes, or significant viewpoint shifts. This research introduces a learned approach using Convolutional Neural Networks (CNNs) to automate and optimize this orientation assignment.
Methodology
The proposed framework utilizes a deep learning architecture to predict orientation directly from image patches. Key technical innovations include:
Siamese Training Strategy
A major challenge in learning orientations is the lack of "ground truth" labels. To overcome this, the authors employ a Siamese network architecture. During training, the network is fed pairs of patches corresponding to the same physical 3D point but captured from different views. The objective function encourages the network to assign orientations that minimize the distance between the resulting descriptors, effectively learning the "best" orientation for matching implicitly.
Descriptor-Agnostic Learning
The system is designed to be compatible with existing descriptors like SIFT or Daisy. By treating the descriptor as a fixed "black box," the CNN learns an orientation specifically tuned to maximize that descriptor's performance.
Generalized Hinging Hyperplane (GHH) Activation
A novel activation function, the Generalized Hinging Hyperplane (GHH), is introduced. GHH is a piece-wise linear function that generalizes ReLU, Maxout, and PReLU. This flexibility allows the network to model the complex, non-linear mappings required for orientation estimation more effectively than standard activation functions.
Experimental Evaluation
The model was trained on the Oxford dataset and evaluated on several challenging benchmarks to test generalization:
- EF (Edge Foci) & Webcam: Testing robustness to lighting and seasonal changes.
- Strecha & DTU: Evaluating performance on non-planar 3D objects with self-occlusions.
- Viewpoints: A custom dataset focusing on large in-plane rotations and complex camera movements.
Key Results and Discussion
The learned orientation method (specifically the EF-VGG* configuration) consistently outperformed state-of-the-art handcrafted and learned alternatives across all tested datasets.
- 3D Reconstruction Density: In Multi-View Stereo (MVS) applications, the proposed method nearly doubled the number of successfully reconstructed 3D vertices (increasing from ~46,000 to ~84,000) compared to SIFT-based orientations.
- Stability and Bias: Traditional methods often exhibit an "upright bias," failing when images are not captured in a standard orientation. The learned method remains stable across arbitrary rotations.
- Computational Efficiency: Despite the use of a neural network, the implementation is highly efficient, processing a feature point in approximately 0.47 ms on a standard CPU.
- Activation Impact: The GHH activation function provided a 5-10% performance improvement over standard ReLU or Tanh functions, validating its utility for this task.
Conclusion
This work demonstrates that learning to assign orientations can yield substantial gains in feature matching and 3D reconstruction. By using a Siamese network and a novel activation function, the researchers created a descriptor-agnostic tool that significantly improves upon handcrafted heuristics. Future work aims to integrate orientation estimation, feature detection, and description into a single, end-to-end differentiable pipeline.
Summary updated