Haze
- class deepinv.physics.Haze(beta=0.1, offset=0, **kwargs)[source]
Bases:
Physics
Standard haze model
The operator is defined as https://ieeexplore.ieee.org/abstract/document/5567108/
\[y = t \odot I + a (1-t)\]where \(t = \exp(-\beta d - o)\) is the medium transmission, \(I\) is the intensity (possibly RGB) image, \(\odot\) denotes element-wise multiplication, \(a>0\) is the atmospheric light, \(d\) is the scene depth, and \(\beta>0\) and \(o\) are constants.
This is a non-linear inverse problems, whose unknown parameters are \(I\), \(d\), \(a\).
- A_dagger(y, **kwargs)[source]
Returns the trivial inverse where x[0] = y (trivial estimate of the image \(I\)), x[1] = tensor of depth \(d\) equal to one, x[2] = 1 for \(a\).
- Parameters:
y (torch.Tensor) – Hazy image.
- Returns:
(deepinv.utils.ListTensor) trivial inverse.