Abstract
Stereo matching becomes computationally challenging when dealing with a large disparity range. Prior methods mainly alleviate the computation through dynamic cost volume by focusing on a local disparity space, but it requires many iterations to get close to the ground truth due to the lack of a global view. We find that the dynamic cost volume approximately encodes the disparity space as a single Gaussian distribution with a fixed and small variance at each iteration, which results in an inadequate global view over disparity space and a small update step at every iteration. In this paper, we propose a parameterized cost volume to encode the entire disparity space using multi-Gaussian distribution. The disparity distribution of each pixel is parameterized by weights, means, and variances. The means and variances are used to sample disparity candidates for cost computation, while the weights and means are used to calculate the disparity output. The above parameters are computed through a JS-divergence-based optimization, which is realized as a gradient descent update in a feed-forward differential module. Experiments show that our method speeds up the runtime of RAFT-Stereo by 4 ~ 15 times, achieving real-time performance and comparable accuracy.
Introduction
Stereo matching is a fundamental computer vision task that involves calculating scene depth by finding pixel correspondences between image pairs. As image resolutions increase, the search space for these correspondences, known as the disparity range, grows significantly. Modern state-of-the-art methods like RAFT-Stereo utilize dynamic cost volumes to manage this complexity. Instead of evaluating the entire search space at once, these models focus on a small local window around a current estimate and iteratively refine it.
However, this local approach introduces a significant bottleneck. If the initial estimate is far from the ground truth, the model must perform numerous small-step iterations (often 32 or more) to converge. This lack of a global view makes such models unsuitable for real-time applications in high-resolution environments, such as autonomous driving or robotics.
Parameterized Cost Volume
To overcome the limitations of local search windows, this work introduces a Parameterized Cost Volume based on a Multi-Gaussian Distribution (MGD). This approach allows the model to maintain a global perspective of the entire disparity range from the first iteration.
The core components of the method include:
- Global Representation: The disparity distribution for each pixel is modeled as a mixture of $M$ Gaussians (typically $M=4$). Each Gaussian is defined by a weight ($\alpha$), a mean ($\mu$), and a variance ($\sigma$).
- JS-Divergence Optimization: Learning is formulated as minimizing the Jensen-Shannon (JS) divergence between the predicted MGD and the target ground-truth distribution.
- Feed-forward Differential Module: A Gated Recurrent Unit (GRU) is employed to solve this optimization during inference. The GRU predicts an optimization step ($\Delta$) based on current parameters and image features, updating the MGD parameters via a gradient-descent-like mechanism.
- Uncertainty-aware Refinement: A final module utilizes the predicted Gaussian variances to refine the disparity map, effectively handling difficult regions like occlusions.
By initializing Gaussians across the full disparity range, the model can immediately shift weights and means to the correct location, rather than "walking" there iteratively.
Experimental Results
The proposed PCVNet was evaluated on standard benchmarks including SceneFlow, KITTI 2015, Middlebury 2014, and the challenging Booster dataset.
Key findings include: * Rapid Convergence: PCVNet achieves better accuracy in just 4 iterations than RAFT-Stereo does in 32. This is attributed to the global view provided by the parameterized cost volume. * Efficiency and Speed: On SceneFlow, PCVNet runs in 62ms, a 4x speedup over RAFT-Stereo (254ms). In high-resolution scenarios, the speedup can reach up to 15x. * Scalability: As shown in Figure 2, the runtime of PCVNet scales much more gracefully with image width compared to competing methods, making it ideal for 4K stereo applications. * Robustness: On the Booster dataset, which features difficult non-Lambertian surfaces, PCVNet significantly reduced the Root Mean Square Error (RMSE) from 17.39 to 15.42 compared to RAFT-Stereo.
Conclusion
The Parameterized Cost Volume offers a significant advancement in making high-accuracy stereo matching practical for real-time systems. By modeling the entire disparity space with a multi-Gaussian distribution, the model avoids the iterative bottlenecks of local search methods. While the current update scheme is simple, future work could explore more robust optimization formulations and tighter integration of the refinement module to further enhance performance.
Summary updated