| 118 | } |
| 119 | |
| 120 | int main(int argc, char** argv) { |
| 121 | int device = argc > 1 ? atoi(argv[1]) : 0; |
| 122 | bool console = argc > 2 ? argv[2][0] == '-' : false; |
| 123 | |
| 124 | try { |
| 125 | af::setDevice(device); |
| 126 | af::info(); |
| 127 | printf("** ArrayFire Harris Corner Detector Demo **\n\n"); |
| 128 | harris_demo(console); |
| 129 | |
| 130 | } catch (af::exception& ae) { |
| 131 | fprintf(stderr, "%s\n", ae.what()); |
| 132 | throw; |
| 133 | } |
| 134 | |
| 135 | return 0; |
| 136 | } |
nothing calls this directly
no test coverage detected