-
-
Save uploadcare-user/ceba80a1584d057316bff6b9edf5412a to your computer and use it in GitHub Desktop.
Construction we find in the code, limiting output pixel values
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
if (ss < 0.5) | |
imOut->image[yy][xx*4+b] = (UINT8) 0; | |
else if (ss >= 255.0) | |
imOut->image[yy][xx*4+b] = (UINT8) 255; | |
else | |
imOut->image[yy][xx*4+b] = (UINT8) ss; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment