Skip to main content
. Author manuscript; available in PMC: 2016 Nov 2.
Published in final edited form as: Proc SPIE Int Soc Opt Eng. 2016 Mar 23;9791:97910M. doi: 10.1117/12.2216790

Algorithm 1.

K-SVD Dictionary Construction

1: Initialize D0g (T0 resp.)
2: repeat
3:  Find sparse coefficients Γ (γi’s) using any pursuit algorithm.
4: for j = 1, …, d0, update fj, the j-th column of D0g (T0 resp.), by the following process do
5:   Find the group of vectors that use this atom: ζj:= {i : 1 ≤ id0, γi(j) ≠ 0}
6:   Compute Ej:=Q-ijfiΓTi where ΓTi is the i-th row of Γ
7:   Extract the i-th columns in Ej, where iζj, to form EjR
8:   Apply SVD to get EjR=UΔV
9:   fj is updated with the first column of U
10:   The non-zeros elements in ΓTj is updated with the first column of V × Δ(1, 1)
11: end for
12: until Convergence criteria is met