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

Function morph

src/api/c/morph.cpp:44–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43template<typename T>
44af_array morph(const af_array &in, const af_array &mask, bool isDilation) {
45 const Array<T> &input = getArray<T>(in);
46 const Array<T> &filter = castArray<T>(mask);
47 Array<T> out = morph<T>(input, filter, isDilation);
48 return getHandle(out);
49}
50
51template<>
52af_array morph<char>(const af_array &input, const af_array &mask,

Callers 3

morph<char>Function · 0.70
af_dilateFunction · 0.70
af_erodeFunction · 0.70

Calls 5

swapFunction · 0.85
getHandleFunction · 0.70
dimsMethod · 0.45
ndimsMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected