Abstract
Single image dehazing is a challenging ill-posed problem traditionally addressed through hand-crafted physical priors. This paper introduces a machine learning framework that shifts the focus from individual priors to a learned combination of multiple haze-relevant features. By training a Random Forest regressor on features such as multi-scale dark channels, contrast, and saturation, the proposed method achieves significant improvements in accuracy and visual quality, effectively mitigating common artifacts like over-darkening and color distortion.
Problem Statement
Removing haze from a single image is a "severely ill-posed" problem. Mathematically, the atmospheric scattering model is expressed as $I = Jt + A(1-t)$, where $I$ is the observed hazy image, $J$ is the clear scene, $t$ is the transmission, and $A$ is the atmospheric light. With one equation and three unknowns, traditional methods rely on assumptions or "priors."
Previous state-of-the-art methods, such as the Dark Channel Prior (DCP), assume that in non-sky patches of clear images, at least one color channel has very low intensity. While effective, DCP often fails on bright objects or sky regions, leading to unnatural darkening or color shifts. This research proposes a learning-based approach to identify the optimal combination of multiple haze-relevant features.
Methodology
The authors utilize a Random Forest regressor to map extracted features to transmission values. The framework consists of three main stages:
- Feature Extraction: Four categories of haze-relevant features are identified to capture different aspects of haze density:
- Multi-scale Dark Channel: Local minima across different patch sizes.
- Multi-scale Local Max Contrast: Variance of pixel intensities.
- Hue Disparity: Detection of haze by comparing the image to its semi-inverse.
- Multi-scale Local Max Saturation: Color saturation as an indicator of haze density.
- Learning the Mapping: A Random Forest is trained to map these features to the transmission value $t$. To ensure the model learns the relationship with haze rather than specific image textures, feature values are sorted within each scale before training, effectively scrambling spatial patterns.
- Refinement and Post-processing: To address the "blocky" output from the forest, a guided filter is used to smooth the transmission map. Adaptive atmospheric light estimation and exposure scaling are then applied to produce the final image.
Datasets and Training
To overcome the lack of ground truth data, the authors synthesized hazy images:
- Training Data: 50,000 patches sampled from high-quality clean images were used to synthesize hazy versions with random transmission values.
- Quantitative Evaluation: 20,000 synthetic test patches and five standard stereo datasets (Dolls, Cones, Teddy, Tsukuba, and Venus) with known depth information were used for realistic haze synthesis.
- Qualitative Evaluation: Standard real-world hazy images from previous literature were used to assess visual fidelity.
Key Results and Insights
- Quantitative Superiority: On synthetic patches, the proposed method achieved a Mean Squared Error (MSE) of $1.26 \times 10^{-2}$, compared to $3.18 \times 10^{-2}$ for the standard DCP method—a reduction in error of over 60%.
- Complementary Features: While the dark channel remains the most important feature, contrast and saturation provide critical information in cases where the dark channel fails, such as on white surfaces or bright railings.
- Robustness through Sorting: Sorting feature values before training forced the Random Forest to learn the statistical relationship between haze and features rather than memorizing spatial patterns, improving generalization to real-world images.
Limitations and Future Work
Despite its success, the framework can amplify image noise in cases of extremely heavy haze where the signal-to-noise ratio is low. Additionally, the model currently operates on local patches without global context (e.g., distinguishing a cloud from a white wall). Future research will explore incorporating semantic information to improve global decision-making regarding haze distribution.
Summary updated