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

Function morphclose

examples/image_processing/morphing.cpp:21–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21array morphclose(const array& img, const array& mask) {
22 return erode(dilate(img, mask), mask);
23}
24
25array morphgrad(const array& img, const array& mask) {
26 return (dilate(img, mask) - erode(img, mask));

Callers 2

bottomhatFunction · 0.85
morphing_demoFunction · 0.85

Calls 2

erodeFunction · 0.85
dilateFunction · 0.85

Tested by

no test coverage detected