| 100 | } |
| 101 | |
| 102 | int 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 | } |
nothing calls this directly
no test coverage detected