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

Function normalize

src/api/c/canny.cpp:146–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146Array<float> normalize(const Array<float>& supEdges, const float minVal,
147 const float maxVal) {
148 auto minArray = createValueArray<float>(supEdges.dims(), minVal);
149 auto diff = arithOp<float, af_sub_t>(supEdges, minArray, supEdges.dims());
150 auto denom = createValueArray<float>(supEdges.dims(), (maxVal - minVal));
151 return arithOp<float, af_div_t>(diff, denom, supEdges.dims());
152}
153
154pair<Array<char>, Array<char>> computeCandidates(const Array<float>& supEdges,
155 const float t1,

Callers 1

computeCandidatesFunction · 0.70

Calls 1

dimsMethod · 0.45

Tested by

no test coverage detected