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

Function morphgrad

examples/image_processing/morphing.cpp:25–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25array morphgrad(const array& img, const array& mask) {
26 return (dilate(img, mask) - erode(img, mask));
27}
28
29array tophat(const array& img, const array& mask) {
30 return (img - morphopen(img, mask));

Callers 1

morphing_demoFunction · 0.85

Calls 2

dilateFunction · 0.85
erodeFunction · 0.85

Tested by

no test coverage detected