The algorithm of patch match implemented by python
This code mainly implement the algorithm of patch match, for details, please see the paper: PatchMatch: A Randomized Correspondence Algorithm for Structural Image Editing
There are two patchmatch code: PatchMatch.py and PatchMatch_Bidirectional.py. The last one serves for the code DeepImageAnalogy
| Input | : | Output | :: | Output | : | Input |
|---|---|---|---|---|---|---|
![]() |
: | ![]() |
:: | ![]() |
: | ![]() |
| image | reference |
|---|---|
![]() |
![]() |
| Iteration 0 | Iteration 1/6 | Iteration 2/6 | Iteration 3/6 | Iteration 4/6 | Iteration 5/6 | Iteration 1 |
|---|---|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| image | reference |
|---|---|
![]() |
![]() |
| Iteration 1 | Iteration 2 | Iteration 5 |
|---|---|---|
![]() |
![]() |
![]() |


















