Draft PR for the bokeh blur effect (updated)#840
Closed
Sergio0694 wants to merge 9 commits intoSixLabors:masterfrom
Sergio0694:feature_bokeh-blur
Closed
Draft PR for the bokeh blur effect (updated)#840Sergio0694 wants to merge 9 commits intoSixLabors:masterfrom Sergio0694:feature_bokeh-blur
Sergio0694 wants to merge 9 commits intoSixLabors:masterfrom
Sergio0694:feature_bokeh-blur
Conversation
Codecov Report
@@ Coverage Diff @@
## master #840 +/- ##
==========================================
- Coverage 88.87% 88.64% -0.24%
==========================================
Files 1015 1018 +3
Lines 44240 44357 +117
Branches 3202 3208 +6
==========================================
Hits 39319 39319
- Misses 4200 4317 +117
Partials 721 721
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #840 +/- ##
==========================================
- Coverage 88.87% 88.64% -0.24%
==========================================
Files 1015 1018 +3
Lines 44240 44357 +117
Branches 3202 3208 +6
==========================================
Hits 39319 39319
- Misses 4200 4317 +117
Partials 721 721
Continue to review full report at Codecov.
|
Member
Author
|
Continues in #842 with a work in progress implementation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prerequisites
Description
Follow up from #837 - with some minor updates:
• I've added the
Complex64type, which uses thefloatfor the real and imaginary components, to save memory and processing time.• Following advice from @antonfirsov, I've added a caching system in the
BokehBlurProcessorclass, so that the kernel parameters and values can be cached and reused across multiple instances using the same initialization parameters.I need some guidance on how to proceed with the actual convolution pass (I mean, on how to properly structure it following your repo guidelines and coding style), and on eventual optimization steps I need to be aware of while writing this down (especially with the various pixel operations). Unlike with the other blur effects, both convolution passes here produce a
Complex64result, so some changes are needed in both the custom convolution 2 pass processor we'll need, as well as the actual 1D convolution code to be added to the helper class.