In this demo, we try to reconstruct missing sample of a piece-wise smooth signal on a graph. To do so, we will minimize the well-known TV norm defined on the graph.
For this example, you need the unlocbox. You can download it here: http://unlocbox.sourceforge.net/download
We express the recovery problem as a convex optimization problem of the following form:
Where b represents the known measurements, M is an operator representing the mask and \(\epsilon\) is the radius of the l2 ball.
We set
\(f_1(x)=||\nabla x ||_1\) We define the prox of \(f_1\) as:
\(f_2\) is the indicator function of the set S define by \(Mx = y\) We define the prox of \(f_2\) as
with \(i_S(x)\) is zero if x is in the set S and infinity otherwise. This previous problem has an identical solution as:
It is simply a projection on the B2-ball.
We can also use the Tikhonov regularizer that will promote smoothness. In this case, we solve:
The result is presented in the following figure:
This code produces the following output:
UnLocBoX version 1.7.3. Copyright 2012-2015 LTS2-EPFL, by Nathanael Perraudin CHAMBOLLE_POCK Rel primal: 1.755268e-04, rel dual 3.066232e-04, it = 200, MAX_IT Using direct solution