2. A new randomized algorithm for quickly finding approximate
nearest-neighbor matches between image patches.
INTRODUCTION – PATCHMATCH
Finding similar patch Reconstruct by patches
Ref. Connelly Barnes, Eli Shechtman, Adam Finkelstein, Dan B Goldman, “PatchMatch: A Randomized Correspondence Algorithm for Structural Image Editing” ACM Transactions on Graphics (Proc. SIGGRAPH), August 2009
3. ----- PatchMatch: Ns x Ms x w2 x iteration
ALGORITHM
• How to find out all nearest patches for each pixel in source image?
• Patch size : w x w , source image : Ns x Ms , target image: Nt x Mt
• Brute force: Ns x Ms x Nt x Mt x w2
Finding similar patch Random Initial Guess
Propagation
= argmin ( , , )
Random search
= argmin ( + wαR )
¼ iteration 5 iteration
7. PATCHMATCH LIBRARY FOR
ANDROID
• Core algorithm in C/C++ code.
• Wrapped with Java-Native-Interface (JNI)
• Compiled with Android Native Development Kit (NDK)