Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arrayfire/arrayfire
/ normalize
Function
normalize
examples/image_processing/edge.cpp:40–44 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
38
}
39
40
array normalize(const array &in) {
41
float mx = max<float>(in);
42
float mn = min<float>(in);
43
return (in - mn) / (mx - mn);
44
}
45
46
array edge(const array &in, int method = 0) {
47
int w = 5;
Callers
1
edge
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected