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

Function normalize

examples/computer_vision/matching.cpp:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15using namespace af;
16
17array normalize(array a) {
18 float mx = af::max<float>(a);
19 float mn = af::min<float>(a);
20 return (a - mn) / (mx - mn);
21}
22
23void drawRectangle(array& out, unsigned x, unsigned y, unsigned dim0,
24 unsigned dim1) {

Callers 1

templateMatchingDemoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected