Skip to content

blur2 with stride - #254

Closed
Fil wants to merge 1 commit into
mbostock/blurfrom
fil/blur-stride
Closed

Fil wants to merge 1 commit into
mbostock/blurfrom
fil/blur-stride

Conversation

@Fil

@Fil Fil commented Jul 1, 2022 •

Copy link
Copy Markdown
Member

demo https://observablehq.com/@d3/blur-stride-dev

The API will have to change: having the stride at the end after the optional ry is not the best solution.

There is no need to change blur1 to accept a stride parameter, since it is the same as using blur2 with width=stride, rx=0, ry=r. We can intercept this in the API if we want, for consistency.

@Fil
Fil requested a review from mbostock July 1, 2022 09:49
@Fil Fil mentioned this pull request Jul 1, 2022
@mbostock

mbostock commented Jul 1, 2022

Copy link
Copy Markdown
Member

I took the liberty of rebasing it with the latest commit 65942a9. Strangely the Laplacian example is faster but the simpler blur is slower, so I wonder if further optimization is possible or if the circular buffer strategy is not a good idea? I wonder if you would be willing to implement a benchmark that runs in Node. That would help compare the possible approaches (even though Node/V8 is only one engine to consider).

@mbostock mbostock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn’t feel right to me. It lets you blur RGBA, yes, but you can’t e.g. just blur the R channel, and now blurh and asymmetric with blurv. We need to think through the interface here some more.

@mbostock

mbostock commented Jul 2, 2022

Copy link
Copy Markdown
Member

Closing in favor of c889f65 in #252. Thanks for the help!

@mbostock mbostock closed this Jul 2, 2022
@Fil
Fil deleted the fil/blur-stride branch July 7, 2022 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants