Skip to content

Schizophreni/Set-vanish-to-the-rain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Single-image-rain-removal-boosting-via-directional-gradient

How to model rainy images (DiG-CoM)

Suppose a rainy image I can be decomposed into 3 parts: background B which is what we need, a residual layer (rain layer) R and an edge layer E to store details. Mathmatically, it can be formulated below:

model

To better decompose, as it's the case in many papers, we construct four constraints:

  • Consistency: consistency
  • Smooth constraint for background: cb
  • constraints for rain layer: cr
  • constraints for edge layer: ce

In DiG-CoM, the parameter is set adaptively according to a metric for rain streaks below

rho

An overflow of optimization can be seen below

Usage

A Demo

In matlab, running demo.m will provide derained results in folder results/, the correspond rainy images are in folder imgs

Some results on real rainy scene

RAINY

CLEAN

Discussion

About

DiG-CoM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published