Skip to main content
. 2026 Aug 2;26(15):4875. doi: 10.3390/s26154875
Algorithm 1 Proposed view-aligned nonlocal low-rank tensor reconstruction method
  •    Input: Y, C, A; parameters ρ,s,Ω,M,D,{bk}k=1K,τinit,T,ε.

  •    Output: Reconstructed view-spectral tensor X^.

  •   1:

    Obtain XGAP and initialize X0=XGAP, V0=X0, U0 as a zero tensor, and Xref0=XGAP.

  •   2:

    for t=0,1,…,T−1 do

  •   3:

        Update Xt+1 by the data-consistency solution in Equation (8).

  •   4:

        Form the prior input Zt+1=Xt+1+Ut.

  •   5:

        Update the reference tensor Xreft+1 using Equation (10).

  •   6:

        for each reference patch center pi do

  •   7:

            Estimate d˜it+1 by minimizing Jit+1(d) over D using Equations (11) and (12).

  •   8:

            Construct the view-aligned nonlocal tensor group Git+1=Qi(Zt+1;Xreft+1).

  •   9:

            Compute the CP low-rank approximation DCP(Git+1).

  • 10:

        end for

  • 11:

        Aggregate all restored groups to obtain Vt+1 using Equation (18).

  • 12:

        Update Ut+1 using Equation (19).

  • 13:

        if ∥Xt+1−Xt∥F/max(∥Xt∥F,ε)<ε then

  • 14:

            break

  • 15:

        end if

  • 16:

    end for

  • 17:

    Set X^=Xt+1.