-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the downsampling algorithm (#15)
* Use improved downsampling algorithm for better quality Add code to calculate the coefficients for the filter separate from the sampling Add unit test for coefficient correctness. Improvements and fixes Implement resampling based on cached weights Optimize buffer read/writes for 3-channels Remove debug code from lib.rs Fix incorrect color clamping Remove commented out code Wrapped ispc pointer code into functions Add getter and setter functions for 4 channels Add support for 4 channel images using function pointers Also tested it out with branching, but the performance was the same Remove debug code. Add documentation for new downsampling function Change resize crate dependency Change back to previous test output name Update build.rs to include new functions Replace function pointers with branching Split downsample function into two versions depending on channel count Remove old downsampling functions. Add filter_scale variable that allows the kernel to be scaled. This way the user can trade performance for detail, and the other way around Remove old ISPC function anme from build.rs Remove duplicate function Remove a skippable write in the clean_and_write ISPC functions Cargo fmt Fix incorrect weight Fix incorrect output address calculation Fix benches Update binaries Some cleanup More cleanup Missed * Fix incorrect assert * Update binaries
- Loading branch information
1 parent
4d259df
commit bcd423a
Showing
20 changed files
with
621 additions
and
109 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
/target/ | ||
/.vscode/ | ||
|
||
Cargo.lock | ||
|
||
|
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
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
Binary file not shown.
Binary file not shown.
Oops, something went wrong.