Skip to content

Instantly share code, notes, and snippets.

@uploadcare-user
Created September 14, 2017 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uploadcare-user/17e2156cb7f9a5b8a6a61ff2ddbae9b8 to your computer and use it in GitHub Desktop.
Save uploadcare-user/17e2156cb7f9a5b8a6a61ff2ddbae9b8 to your computer and use it in GitHub Desktop.
Horizontal pass, inner loops count
for (yy = 0; yy < imOut->ysize; yy++) {
// ...
for (xx = 0; xx < imOut->xsize; xx++) {
// ...
for (b = 0; b < imIn->bands; b++) {
// ...
for (x = (int) xmin; x < (int) xmax; x++) {
ss = ss + (UINT8) imIn->image[yy][x*4+b] * k[x - (int) xmin];
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment