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

Function morphopen

examples/image_processing/morphing.cpp:17–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15using namespace af;
16
17array morphopen(const array& img, const array& mask) {
18 return dilate(erode(img, mask), mask);
19}
20
21array morphclose(const array& img, const array& mask) {
22 return erode(dilate(img, mask), mask);

Callers 2

tophatFunction · 0.85
morphing_demoFunction · 0.85

Calls 2

dilateFunction · 0.85
erodeFunction · 0.85

Tested by

no test coverage detected