MR-HS Optical Flow Estimation
- The method extends the classical Horn–Schunck technique with a multiresolution pyramid to effectively handle large displacements and avoid local minima.
- It employs a variational formulation with Gauss–Seidel iterations and bilinear interpolation for subpixel optical flow refinement.
- Empirical evaluations show significant improvements, reducing average angular error by ~23% and end-point error by ~29% over standard methods.
The Multiresolution Horn–Schunck (MR-HS) method is an extension of the classical Horn–Schunck framework for optical flow estimation, incorporating a coarse-to-fine multiresolution pyramid and bilinear interpolation strategies to enhance accuracy and convergence. MR-HS targets the recovery of dense motion fields between consecutive image frames by minimizing a global energy functional, where the multiresolution design addresses challenges posed by large displacements and local minima, especially under varying image conditions (Ziani, 20 Nov 2025).
1. Horn–Schunck Variational Formulation
The foundational principle of MR-HS is the original Horn–Schunck variational method, which seeks a dense optical flow field that minimizes the following energy:
where , , and are the spatial and temporal derivatives of the image intensity, and is a regularization parameter controlling the balance between data fidelity and smoothness. The Euler–Lagrange equations for this minimization yield the coupled elliptic PDEs:
Spatial gradients are discretized using 3×3 Sobel masks, while the Laplacian is approximated by subtracting from its 5×5 Gaussian-smoothed local average.
2. Iterative Update and Single-Level Scheme
At each iteration and pixel 0, local Gaussian averages 1, 2 are computed. The updates proceed via the Gauss–Seidel method:
3
4
where 5 regularizes small denominators. Over-relaxation is optional, but the reference implementation uses straightforward Gauss–Seidel updates. Convergence is monitored via the sum of L2-norms 6 compared to a threshold 7.
3. Multiresolution Framework
MR-HS utilizes a Gaussian pyramid for both input images. Let 8 be the number of levels. Pyramidal construction is performed by iteratively applying Gaussian filtering and decimation by a factor of two:
9
At each level, the optical flow is initialized and refined. Flow fields estimated at coarser levels are prolongated to finer levels via bilinear interpolation:
0
where 1 is the integer part and 2 the fractional part of 3. Prolongated flows are scaled by 2 to account for increased resolution.
4. Level Integration and Algorithmic Structure
The MR-HS algorithm integrates estimates across resolution levels:
- Construct pyramids for 4 and 5.
- Initialize the flow 6 at the coarsest level (7).
- For levels 8:
- If 9, upsample flow from level 0.
- Warp 1 toward 2 using upsampled flow.
- Recompute 3 at level 4.
- Run single-level Horn–Schunck for up to the maximum iterations or until convergence (change below 5).
- Output full-resolution flow 6.
Warping is performed by mapping pixels in 7 according to the upsampled optical flow, with bilinear interpolation used to sample subpixel positions.
5. Parameter Choices and Empirical Performance
Parameter settings reported include:
- Regularization 8, typical values chosen empirically.
- Number of pyramid levels: 9 or 4 (0 for Alley_1, Bamboo_2, Mountain_1; 1 for Market_2).
- Maximum iterations per level: up to 5,000 (typically 100–300 suffice at each level, fewer in coarser levels due to rapid convergence).
- Convergence threshold 2.
- Small denominator buffer 3.
The MR-HS method demonstrates a reduction in both average angular error (AAE) and end-point error (EPE) compared to the baseline Horn–Schunck, attaining 4 AAE and 1.54 px EPE on the MPI-Sintel “final” benchmark, versus 5 and 2.17 px for the standard method—a drop of approximately 23% and 29%, respectively.
| Method | Average Angular Error | End-Point Error |
|---|---|---|
| Horn–Schunck | 6 | 2.17 px |
| MR-HS | 7 | 1.54 px |
6. Implementation Details and Computational Complexity
- Boundary conditions: Edge value replication is used for both convolution and interpolation at image borders.
- Iteration halting: The process stops if the L2-norm of the flow change drops below 8 or the maximum iterations are reached.
- Computational expense: Each iteration is 9 for 0 pixels, resulting in overall complexity 1, with 2 the number of pyramid levels and 3 the iterations per level.
Multiresolution processing mitigates the risk of suboptimal minima and expedites convergence in practice by initially estimating large-scale motion at the lowest resolution and incrementally refining at higher resolutions.
7. Context and Significance
MR-HS synthesizes global variational regularization with hierarchical, coarse-to-fine computation, bridging classical global techniques and robust multiscale approaches. The integration of Gaussian smoothing for gradient computation, bilinear prolongation for subpixel flow transfer, and pyramidal image warping results in improved precision over single-scale Horn–Schunck, particularly for complex sequences with large motions or challenging lighting. Boundary handling, convergence scheduling, and complexity management are directly addressed, enabling application to realistic datasets under diverse conditions. The empirical results on challenging synthetic data underscore the practical value of multiresolution strategies within variational optical flow frameworks (Ziani, 20 Nov 2025).