-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed conversions between image types.
Conversions between floating-point image types now preserves HDR values, or values outside the range 0 and 1. Converting to grayscale types may now optionally perform the grayscale conversion or keep the red channel only. Added separate Gray16 type to differentiate between a normalized 16-bit value and unnormalized integer type. Data from FreeImage uses Gray16 format, as it treats UInt16 as a normalized grayscale type. Added unit tests to verify conversion between various formats, ensuring that HDR values are properly preserved and grayscale conversions work. Verify that resizing filters preserves HDR values, both with the FreeImage and fallback logic.
- Loading branch information
Showing
4 changed files
with
526 additions
and
76 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
Oops, something went wrong.