
Demo of the Coarse-to-Fine PatchMatch, published at CVPR 2016 in
"Efficient Coarse-to-Fine PatchMatch for Large Displacement Optical Flow"
by Yinlin.Hu, Rui Song and Yunsong Li.

Email: huyinlin@gmail.com

Version 1.0

Copyright (C) 2016 Yinlin.Hu


Usages:

  The program "cpm.exe" has been built and tested on Windows 7.

  USAGE: cpm.exe img1Name img2Name outMatchName <d> <r> <k> <n>
    Where the last four parameters are optional:
    d: grid spacing <default: 3>
    r: search radius <default: 4>
    k: pyramid levels <default: 5>
    n: iteration times <default: 6>

  see "demo.bat" for examples.

Explanations:

  The output of the program is a text file, which is in the format of "x1,y1,x2,y2"
  corresponding to one match per line, and a image file is also outputed for visualization.

  The program outputs matches only. Please use an interpolation method
  (EpicFlow: http://lear.inrialpes.fr/src/epicflow/) to obtain the final optical flow results.
