Abstract
Image alignment by mesh warps, such as meshflow, is a fundamental task widely applied in vision applications like multi-frame HDR, denoising, and video stabilization. Traditional mesh warp methods rely on detecting and matching image features, which often fail in low-texture or low-light scenes. Conversely, deep homography methods are robust but limited to planar motions. We present DeepMeshFlow, an unsupervised deep meshflow motion model that takes two images as input and outputs a sparse motion field at mesh vertices. DeepMeshFlow combines the flexibility of mesh warps to describe non-linear motions with the robustness of deep learning. Our architecture features a content-adaptive capability, utilizing a learned mask to reject unalignable regions and a multi-resolution mesh division. Experimental results on a comprehensive new dataset demonstrate that DeepMeshFlow outperforms both traditional and deep-based baselines in challenging scenarios.
Introduction
Image registration—the process of overlaying two or more images of the same scene—is a cornerstone of computer vision. Historically, researchers have faced a trade-off between Global Homography and Mesh-based Warping. Global homography is robust but assumes a flat scene, leading to "ghosting" or blurring in the presence of parallax. Mesh-based warping, like the traditional MeshFlow, offers flexibility for non-linear motions but relies on hand-crafted keypoints (corners/edges). In feature-poor environments, such as dark rooms or clear skies, these traditional methods often fail or produce garbled results.
DeepMeshFlow bridges this gap by providing the non-linear flexibility of a mesh while leveraging deep features to maintain robustness in challenging, "feature-poor" environments.
Methods
The DeepMeshFlow architecture is an unsupervised convolutional neural network (CNN) that estimates motion at mesh vertices. It introduces three core innovations:
- Unsupervised Triplet Loss: To train without ground-truth pixel matches, the network uses a triplet loss. It minimizes the distance between warped features of image A and features of image B, while ensuring the learned features remain distinct to avoid trivial solutions.
- Mask Predictor (Learned RANSAC): This sub-network predicts an "inlier" mask, automatically learning to ignore regions that should not be used for alignment, such as moving objects or textureless water. This effectively performs the job of the RANSAC algorithm within a deep learning framework.
- Content-Adaptive Mesh Resolution: The network generates meshes at multiple scales (e.g., 1x1, 4x4, and 16x16). A segmentation module selects the optimal resolution for different image regions—coarse for flat areas to maintain robustness and fine for complex foregrounds to ensure precision.
Experiments and Results
The authors introduced a massive benchmark of 121,000 training pairs and 3,000 evaluation pairs across categories like Single Plane (SP), Multiple Planes (MP), Large Foreground (LF), Low Texture (LT), and Low Light (LL).
DeepMeshFlow significantly outperformed both traditional and recent deep learning baselines:
- Accuracy: It achieved an average $l_2$ error of 1.99 pixels, compared to 2.44 for traditional MeshFlow and 2.45 for unsupervised deep homography.
- Robustness: In "Low Texture" scenes, the learned mask improved performance significantly, reducing error from 3.16 (without mask) to 2.20 (with mask).
Key Insights
- Robustness through Rejection: By learning to reject moving foregrounds via the mask, the network focuses solely on the static background to calculate alignment, which is much more stable.
- The Multi-Scale Trade-off: The adaptive selection mechanism avoids overfitting to noise in dark scenes (which a fine mesh might do) while providing precision where needed.
- Deep Feature Learning: Using deep features instead of raw pixels allows the model to handle lighting changes and noise that typically baffle traditional descriptors like SIFT.
Limitations and Future Work
While highly effective, DeepMeshFlow faces challenges with extreme occlusions that cover the majority of the frame. Future work includes optimizing inference speed for mobile deployment and integrating the registration engine into end-to-end pipelines for video stabilization and HDR imaging.
Summary updated