Algorithm 1.
Input: | |
Training images: A and A′; | |
Source image: B. | |
Output: | |
’Filtered’ source B′. | |
1: | Construct Gaussian pyramids for A, A′ and B; |
2: | Generate features for A, A′ and B; |
3: | for each level l starting from coarsest do |
4: | for each pixel , in scan-line order do |
5: | Find best matching pixel p of q in Al and ; |
6: | Assign the value of pixel p in A′ to the value of pixel q in ; |
7: | Record the position of p. |
8: | end for |
9: | end for |
10: | Return where L is the finest level. |