Skip to main content
. Author manuscript; available in PMC: 2015 Aug 1.
Published in final edited form as: Med Image Anal. 2013 Dec 18;18(6):914–926. doi: 10.1016/j.media.2013.12.005

Algorithm 1.

Image Analogies.

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 qBl, in scan-line order do
5:   Find best matching pixel p of q in Al and Al;
6:   Assign the value of pixel p in A′ to the value of pixel q in Bl;
7:   Record the position of p.
8: end for
9: end for
10: Return BL where L is the finest level.