Matlab implementation of approximate k-nearest-neighbors with PatchMatch.
References:
[1] Connelly Barnes, Eli Shechtman, Adam Finkelstein, and Dan B Goldman. PatchMatch: A Randomized Correspondence Algorithm for Structural Image Editing. ACM Transactions on Graphics (Proc. SIGGRAPH) 28(3), August 2009.
[2] Connelly Barnes, Eli Shechtman, Dan B Goldman, and Adam Finkelstein. The Generalized PatchMatch Correspondence Algorithm. European Conference on Computer Vision, September 2010.