Created
August 3, 2014 14:33
-
-
Save kazoo04/f7228236c448a1de0e1b to your computer and use it in GitHub Desktop.
all pixels (iplImage)
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
for(y=0; y<height; y++) { | |
for(x=0; x<width; x++) { | |
int index = img->widthStep*y+(x*3); | |
int b = img->imageData[a+0]; | |
int g = img->imageData[a+1]; | |
int r = img>imageData[a+2]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment