Skip to content

Instantly share code, notes, and snippets.

@uploadcare-user
Created September 14, 2017 19:14
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/cacb5738cf97917a9f6abbed9ec6fa40 to your computer and use it in GitHub Desktop.
Save uploadcare-user/cacb5738cf97917a9f6abbed9ec6fa40 to your computer and use it in GitHub Desktop.
Unfolding the vertical pass
for (xx = 0; xx < imOut->xsize*4; xx++) {
/* FIXME: skip over unused pixels */
ss = 0.0;
for (y = (int) ymin; y < (int) ymax; y++)
ss = ss + (UINT8) imIn->image[y][xx] * k[y-(int) ymin];
ss = ss * ww + 0.5;
imOut->image[yy][xx] = clip8(ss);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment