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

Function main

examples/image_processing/edge.cpp:100–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100int main(int argc, char *argv[]) {
101 int device = argc > 1 ? atoi(argv[1]) : 0;
102
103 try {
104 af::setDevice(device);
105 af::info();
106
107 printf("** ArrayFire Edge Detection Demo **\n");
108 edge();
109
110 } catch (af::exception &e) {
111 fprintf(stderr, "%s\n", e.what());
112 throw;
113 }
114
115 return 0;
116}

Callers

nothing calls this directly

Calls 3

infoFunction · 0.85
edgeFunction · 0.85
setDeviceFunction · 0.50

Tested by

no test coverage detected