Skip to main content
. 2019 Dec 7;19(24):5401. doi: 10.3390/s19245401
Algorithm 1 On-line hyperspectral dictionary learning algorithm.
Initialization: Taking the HS reflectance of all pixels in the observed LR-HS image as the HS sample set {S}, initialize dictionary set B as {ϕ}, and set the correlation similarity threshold θ;
1. Randomly select an HS reflectance st as temporary set {St}={st} from {S}, and update {S} by removing st;
2. Calculate the normalized correlation coefficients ri between st and any sample si in {S}:
               ri=l=1Lst,lsi,ll=1Lst,ll=1Lsi,l
If ri>θ, we take si from {S} into {St} {S}si{St}.
3. Repeat the same process for all samples in {S}
4. Calculate the mean vector in {St} as the HS basis bt; put it into the dictionary B btB; and re-set {St} as ϕ.
6. If {S} is ϕ, finish; otherwise go to Step 1.