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

Function main

examples/image_processing/optical_flow.cpp:102–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102int main(int argc, char* argv[]) {
103 int device = argc > 1 ? atoi(argv[1]) : 0;
104 bool console = argc > 2 ? argv[2][0] == '-' : false;
105
106 try {
107 af::setDevice(device);
108 af::info();
109 printf("Horn-Schunck optical flow\n");
110
111 optical_flow_demo(console);
112 } catch (af::exception& e) {
113 fprintf(stderr, "%s\n", e.what());
114 throw;
115 }
116
117 return 0;
118}

Callers

nothing calls this directly

Calls 3

infoFunction · 0.85
optical_flow_demoFunction · 0.85
setDeviceFunction · 0.50

Tested by

no test coverage detected