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

Function edges_slice

examples/image_processing/brain_segmentation.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25//};
26
27array edges_slice(array x) {
28 array ret;
29 static array kernelx = array(dim4(3, 3), h_sx_kernel);
30 static array kernely = array(dim4(3, 3), h_sy_kernel);
31 ret = convolve(x, kernelx) + convolve(x, kernely);
32 return abs(ret);
33}
34
35array gauss(array x, float u, float s) {
36 double f = 1 / sqrt(2 * af::Pi * s * s);

Callers 1

brain_segFunction · 0.85

Calls 4

arrayClass · 0.50
dim4Class · 0.50
convolveFunction · 0.50
absFunction · 0.50

Tested by

no test coverage detected