Skip to content

Instantly share code, notes, and snippets.

@kazoo04
Created August 3, 2014 14:33
Show Gist options
  • Save kazoo04/f7228236c448a1de0e1b to your computer and use it in GitHub Desktop.
Save kazoo04/f7228236c448a1de0e1b to your computer and use it in GitHub Desktop.
all pixels (iplImage)
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