-
-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gaussian blur - "fast" method: large performance improvements
Relates to #279 This new gaussian blur design takes advantage of the perf improvements in f010eec and extends them to the vertical component as well. (Actually, we cheat and perform the vertical blurs by rotating the image 90 degrees, applying horizontal blurs, then rotating it back - this provides a larger perf boost, and it ensures that vertical edge behavior is 100% identical to horizontal edge behavior.) Edge pixel handling is now identical to PD's more precise IIR-based technique, with edge pixels being "extended" instead of "clamped". This produces closer results to Photoshop, for better or worse. I've also further reduced memory requirements of the fast function (alongside some truly ugly object aliasing, lol), and performance of PD's fast gaussian is now back on par with Paint.NET.
- Loading branch information
1 parent
f010eec
commit 6f4261e
Showing
4 changed files
with
69 additions
and
22 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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