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

Function spread

examples/image_processing/filters.cpp:64–66  ·  view source on GitHub ↗

* randomly pick neighbor from given window size and replace the * current pixel with the randomly chosen color. * No new colors are introduced, unlike hurl. */

Source from the content-addressed store, hash-verified

62 * No new colors are introduced, unlike hurl.
63 */
64array spread(const array &in, int window_width, int window_height) {
65 return getRandomNeighbor(in, window_width, window_height);
66}
67
68/**
69 * randomization - controls % of total number of pixels in the image

Callers 1

mainFunction · 0.85

Calls 1

getRandomNeighborFunction · 0.85

Tested by

no test coverage detected