Abstract
Optical flow estimation in rainy scenes is challenging due to degradation caused by rain streaks and rain accumulation, where the latter refers to the poor visibility of remote scenes due to intense rainfall. To resolve the problem, we introduce a residue channel, a single channel (gray) image that is free from rain, and its colored version, a colored-residue image. We propose to utilize these two rain-free images in computing optical flow. To deal with the loss of contrast and the attendant sensitivity to noise, we decompose each of the input images into a piecewise-smooth structure layer and a high-frequency fine-detail texture layer. We combine the colored-residue images and structure layers in a unified objective function, so that the estimation of optical flow can be more robust. Results on both synthetic and real images show that our algorithm outperforms existing methods on different types of rain sequences. To our knowledge, this is the first optical flow method specifically dealing with rain. We also provide an optical flow dataset consisting of both synthetic and real rain images.
Introduction
Optical flow—the task of tracking pixel motion between consecutive camera frames—is a fundamental building block for autonomous driving and surveillance. Most algorithms rely on the Brightness Constancy Constraint (BCC), assuming a pixel's color doesn't change as it moves.
Rain breaks this assumption in two ways: rain streaks introduce fast-moving, bright noise that standard algorithms mistake for actual motion, and rain accumulation creates a fog-like haze that reduces contrast and washes out background details. Existing deraining methods often introduce blurry artifacts that further confuse flow estimators.
Methodology
The authors propose a multi-stage pipeline integrated into a single objective function to handle these challenges.
The Residue Channel
Based on the physical model of rain, the authors observe that rain streaks are largely achromatic (colorless). By calculating the difference between the maximum and minimum color channels (the "residue"), they can effectively cancel out rain streaks, leaving a grayscale image of the background. This is further extended to a "colored-residue image" to preserve important color boundaries.
Structure-Texture Decomposition
To handle the low contrast caused by rain accumulation, the algorithm decomposes images into a structure layer (smooth, main shapes) and a texture layer (fine details and noise). By focusing flow estimation on the structure layer, the model becomes less sensitive to high-frequency rain noise.
Unified Objective Function
Rather than treating deraining and flow estimation as separate steps, the authors combine them. They use a tunable weighting factor that decides whether to trust the colored-residue image or the original input based on local brightness and contrast, allowing the algorithm to "fill in" information in dark or low-contrast regions.
Key Results
The proposed method significantly outperformed state-of-the-art (SOTA) models like EpicFlow, DCFlow, and FlowNet2 in rainy conditions. On the FVR-660 dataset, the method achieved an End Point Error (EPE) of 1.76, compared to 4.52 for EpicFlow and 5.73 for FlowNet2.
As shown in the qualitative results, baseline methods produce messy, noisy flow maps in heavy rain. The proposed method produces much sharper and more accurate boundaries for moving vehicles, proving it is not distracted by falling rain streaks.
Limitations and Future Work
While robust, the model assumes the camera is protected (e.g., behind a windshield) and does not explicitly handle heavy blur from water droplets physically stuck to the lens. Additionally, extreme lighting conditions that tint rain streaks might reduce the effectiveness of the residue channel. Future work may also address the computational speed of this variational optimization-based method to enable real-time deployment.
Summary updated