|
Algorithm 1 Image Restoration Using SPG-SC Model. |
-
Require:
The observed image and measurement matrix .
-
1:
Initial , , , and .
-
2:
Set parameters b, m, L, , , , , p, t, , , , and .
-
3:
for Max-Iter do
-
4:
Update by Equation (20);
-
5:
;
-
6:
Construct dictionary by using K-means algorithm and PCA.
-
7:
for Each patch
do
-
8:
Choose the best match PCA dictionary for ;
-
9:
Compute by ;
-
10:
Update by computing Equation (30);
-
11:
Update by computing Equation (32);
-
12:
Update by computing Equation (22);
-
13:
end for
-
14:
;
-
15:
for Each patch-group
do
-
16:
Construct dictionary by computing Equation (27);
-
17:
Compute by ;
-
18:
Update by computing Equation (31);
-
19:
Update by computing Equation (33);
-
20:
Update by computing Equation (29);
-
21:
end for
-
22:
Update by concatenating all ;
-
23:
Update by concatenating all ;
-
24:
Update by concatenating all ;
-
25:
Update by concatenating all ;
-
26:
Update by Equation (17);
-
27:
Update by Equation (18);
-
28:
end for
-
29:
The final restored image by aggregating patches in .
|