INPUT: Incomplete image , mask tensor , vector of block sizes where L is number of stages, , rank vectors , error level ϵ, maximum value of the rank , internal iteration number , the rank increasing step () and the threshold for selecting the core tensors for rank incremental in each iteration ().
OUTPUT: Completed image .
1: Initialize the missing elements of by zero.
2: for
do
3: Block Hankelize the input incomplete image () and the mask tensor () by block size and window size which results in and .
4: Put
5: while
(or the normalized approximation error is higher than the error level ϵ) do
6: for
do
7: Compute the TR decomposition of , i.e., with rank vector .
8:
9: end for
10: Increase the elements of the rank vector using the approach of (Sedighin et al., 2021).
11: Compute by de‐Hankelizing (in noisy cases by de‐Hankelizing ).
12: .
13: Apply smoothing by replacing each estimated element (for ) by the average of its four neighbors in the frontal slice and keeping the observed elements fixed.
14: end while
15: Put .
16: end for
|