-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix normalization when the result overflows (#701)
Using uint for max values now because uint Max32 can't be represented in IEEE754 single precision float. In calculations it will be promoted to float. Changed normalization function for single channel images to return max of the data type assuming (x, 0, 0, 0) vectors. And changed the test values accordingly --------- Co-authored-by: Wasim Abbas <abbas.wasim@gmail.com>
- Loading branch information
1 parent
fefd4a6
commit f81330b
Showing
2 changed files
with
18 additions
and
18 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