Initialization:
f = g,
v = 1,
σ1 =
σ2 =
ε1,
σ1prev =
σ2prev ≫ 1 |
Iteration: while
(|σ1prev −
σ1| >
ε2 or
|σ2prev −
σ2| >
ε2) repeat
Update the edge map v
using the gradient descent algorithm, as in Eq.(12).
Update the restored image
f using the gradient descent
algorithm, as in Eq.(13), and
constrain f with Eq.(14).
Set
σ1prev
= σ1,
and update σ1 by
solving Eq.(15) using the bisection method.
Set
σ2prev
= σ2,
and update σ2 by
solving Eq.(16) using the bisection method.
Update the blur kernel
hσ1,σ2
with the new σ1
and σ2 using
Eqs.(21) and (22).
|
end |