MCPcopy Create free account
hub / github.com/d3/d3-array / blurfImage

Function blurfImage

src/blur.js:61–70  ·  view source on GitHub ↗
(radius)

Source from the content-addressed store, hash-verified

59}
60
61function blurfImage(radius) {
62 const blur = blurf(radius);
63 return (T, S, start, stop, step) => {
64 start <<= 2, stop <<= 2, step <<= 2;
65 blur(T, S, start + 0, stop + 0, step);
66 blur(T, S, start + 1, stop + 1, step);
67 blur(T, S, start + 2, stop + 2, step);
68 blur(T, S, start + 3, stop + 3, step);
69 };
70}
71
72// Given a target array T, a source array S, sets each value T[i] to the average
73// of {S[i - r], …, S[i], …, S[i + r]}, where r = ⌊radius⌋, start <= i < stop,

Callers

nothing calls this directly

Calls 2

blurfFunction · 0.85
blurFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…