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

Function blur

examples/image_processing/morphing.cpp:62–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62array blur(const array& img, const array mask = gaussianKernel(3, 3)) {
63 array blurred = array(img.dims(), img.type());
64 for (int i = 0; i < (int)blurred.dims(2); i++)
65 blurred(span, span, i) = convolve(img(span, span, i), mask);
66 return blurred;
67}
68
69// Demonstrates various image morphing manipulations.
70static void morphing_demo() {

Callers 1

morphing_demoFunction · 0.85

Calls 5

typeMethod · 0.80
gaussianKernelFunction · 0.50
arrayClass · 0.50
convolveFunction · 0.50
dimsMethod · 0.45

Tested by

no test coverage detected