Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
25
array morphgrad(const array& img, const array& mask) {
26
return (dilate(img, mask) - erode(img, mask));
27
}
28
29
array tophat(const array& img, const array& mask) {
30
return (img - morphopen(img, mask));
Callers
1
morphing_demo
Function · 0.85
Calls
2
dilate
Function · 0.85
erode
Function · 0.85
Tested by
no test coverage detected