Skip to main content
. 2025 Jun 30;27(7):709. doi: 10.3390/e27070709
Algorithm 1 Classification algorithm
Input:
As: smooth compressed dictionary.
yi: measurement value of image xi
Ks: the number of iterations of the algorithm.
Initialization:
ωi0=yi,A~i0=∅ ,Λi0=∅
while t≤Ks do
 c1~it=argmaxc1=1,…,C1ωit−1,asc1;
 Λit=Λit−1∪c1~it; A~it=A~it−1,asc1~it;
 α~it=A~itT·A~it−1·A~itT·yi;
 ωit=yi−A~it·α~it;t=t+1
end
ei=ωit22
Output:
ei: the residual energy of the i-th block’s image