Created
September 19, 2011 22:23
-
-
Save dennda/1227773 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
uint16_t pix = 0; | |
uint16_t min = 34464; | |
uint16_t max = 0; | |
uint16_t *d = (uint16_t*) imgData; | |
for (int i = 0; i < 512 * 512; i++) { | |
pix = d[i]; | |
if (pix > max) | |
max = pix; | |
else if (pix < min) | |
min = pix; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment