MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / main

Function main

examples/computer_vision/matching.cpp:111–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111int main(int argc, char** argv) {
112 int device = argc > 1 ? atoi(argv[1]) : 0;
113 bool console = argc > 2 ? argv[2][0] == '-' : false;
114
115 try {
116 af::setDevice(device);
117 af::info();
118 std::cout << "** ArrayFire template matching Demo **" << std::endl
119 << std::endl;
120 templateMatchingDemo(console);
121
122 } catch (af::exception& ae) {
123 std::cerr << ae.what() << std::endl;
124 throw;
125 }
126
127 return 0;
128}

Callers

nothing calls this directly

Calls 3

infoFunction · 0.85
templateMatchingDemoFunction · 0.85
setDeviceFunction · 0.50

Tested by

no test coverage detected