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

Function normalize

examples/image_processing/gradient_diffusion.cpp:19–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17static const unsigned ITERS = 64;
18
19array normalize(const array &p_in) {
20 float mx = max<float>(p_in);
21 float mn = min<float>(p_in);
22 return (p_in - mn) / (mx - mn);
23}
24
25array sobelFilter(const array &p_in) {
26 int w = 5;

Callers 2

sobelFilterFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected