Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arrayfire/arrayfire
/ tophat
Function
tophat
examples/image_processing/morphing.cpp:29–31 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
27
}
28
29
array tophat(const array& img, const array& mask) {
30
return (img - morphopen(img, mask));
31
}
32
33
array bottomhat(const array& img, const array& mask) {
34
return (morphclose(img, mask) - img);
Callers
1
morphing_demo
Function · 0.85
Calls
1
morphopen
Function · 0.85
Tested by
no test coverage detected