retarget func
Merge branch 'master' of https://github.com/whus6207/PatchMatch