www.pudn.com > 99273898StereoMatch_1_0.zip > main.cpp


/////////////////////////////////////////////////////////////////////////// 
// 
// NAME 
//  main.cpp -- entry point for command-line stereo matching code 
// 
// USAGE 
//  StereoMatch [option value]* 
// 
// DESCRIPTION 
//  The main routine call the CStereoIO class to process the command-line 
//  arguments (pairs of parameters / commands and their values). 
// 
// SEE ALSO 
//  StereoIO.h              description main command-line options 
//  StereoParameters.h      description of stereo algorithm parameters 
// 
// Copyright © Richard Szeliski and Daniel Scharstein, 2001. 
// See Copyright.h for more details 
// 
/////////////////////////////////////////////////////////////////////////// 
 
#include "Error.h" 
#include "StereoIO.h" 
 
int main(int argc, const char *argv[]) 
{ 
    CStereoIO s; 
 
    try 
    { 
        s.InterpretCommandLine(argc, argv); 
    } 
    catch (CError &err) 
    { 
        fprintf(stderr, err.message); 
        fprintf(stderr, "\n"); 
        return -1; 
    } 
    return 0; 
}