MCPcopy 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
29array tophat(const array& img, const array& mask) {
30 return (img - morphopen(img, mask));
31}
32
33array bottomhat(const array& img, const array& mask) {
34 return (morphclose(img, mask) - img);

Callers 1

morphing_demoFunction · 0.85

Calls 1

morphopenFunction · 0.85

Tested by

no test coverage detected