Skip to main content
. 2018 Dec 7;18(12):4330. doi: 10.3390/s18124330
Algorithm 1 The proposed method
1: Input: the PAN image P and the HS image H oversampled to the size of P.
2: Initialize:the pansharpened image u0 = H. Fixed ∆t, γ, η and μ
3: Compute DH following Equation (5).
4: Obtain Z by GSA
5: for k = 1, 2, , N
6:  for i = 1, 2, , n
7:   for pixel xΩ
8:     Compute Du following Equation (5).
9:    for pixel yI
10:     Compute the weights w(x, y) following Equation (7).
11:    end for
12:    Compute the iterative scheme in Equation (17)
13:   end for
14:  end for
15: end for
16: u = uk + 1.
17: OUTPUT: pansharpened image u.