This reminds me of the quite powerful PatchMatch algorithm [1]. Is it related?
Also note how PatchMatch can work with constraints.
[1] http://vis.berkeley.edu/courses/cs294-69-fa11/wiki/images/1/...
Also note how PatchMatch can work with constraints.
[1] http://vis.berkeley.edu/courses/cs294-69-fa11/wiki/images/1/...
Photoshop's implementation of PatchMatch handles constraints perfectly, yes.