text: #include <iostream>
  #include <string>
  #include "../base/pmvs/findMatch.h"
  #include "../base/pmvs/option.h"
  
  using namespace PMVS3;
  using namespace std;
  
  int main(int argc, char* argv[]) {
    if (argc < 3) {
      cerr << "Usage: " << argv[0] << " prefix option_file" << endl
           << endl
           << "--------------------------------------------------" << endl
           << "level       1    csize    2" << endl
           << "threshold   0.7  wsize    7" << endl
           << "minImageNum 3    CPU      4" << endl
           << "useVisData  0    sequence -1" << endl
           << "quad        2.5  maxAngle 10.0" << endl
           << "--------------------------------------------------" << endl
           << "2 ways to specify targetting images" << endl
           << "timages  5  1 3 5 7 9 (enumeration)" << endl
           << "        -1  0 24 (range specification)" << endl
           << "--------------------------------------------------" << endl
           << "4 ways to specify other images" << endl
           << "oimages  5  0 2 4 6 8 (enumeration)" << endl
           << "        -1  24 48 (range specification)" << endl;
      exit (1);
    }
  
    for(int i=0; i < argc; ++i)
    {
  	  cout << endl << argv[i];
    }
    
    PMVS3::Soption option;
    option.init(argv[1], argv[2]);  
    
    PMVS3::CfindMatch findMatch;
    findMatch.init(option);
    findMatch.run();
    
    char buffer[1024];
    sprintf(buffer, "%smodels/%s", argv[1], argv[2]);
    findMatch.write(buffer);
  }
  