Skip to content

Instantly share code, notes, and snippets.

@uploadcare-user
Created September 13, 2017 18:39
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/30cf683f014cec9721f5a22675035904 to your computer and use it in GitHub Desktop.
Save uploadcare-user/30cf683f014cec9721f5a22675035904 to your computer and use it in GitHub Desktop.
Rotating workflow by 90 degrees
// Calculating the coefficients
for (yy = 0; yy < imOut->ysize; yy++) {
for (xx = 0; xx < imOut->xsize; xx++) {
k = &kk[xx * kmax];
xmin = xbounds[xx * 2 + 0];
xmax = xbounds[xx * 2 + 1];
// Convolution, row of pixels
// Saving pixel to imOut->image8[yy][xx]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment