Skip to main content
. 2019 Sep 16;3(3):47. doi: 10.3390/vision3030047
Algorithm 1 Generalized Matching Pursuit: ak=S(yk;Ψ={Φ,z,N0})
  • 1:

    set the sparse vector ak to zero,

  • 2:

    initialize a¯k,i=yk,Φi for all i

  • 3:

    while||ak||0<N0do:

  • 4:

     select the best match: i=errori[zi(a¯k,i)]

  • 5:

     update the sparse coefficient: ak,i=ak,i+a¯k,i,

  • 6:

     update residual: i,a¯k,ia¯k,iak,iΦi,Φi.