Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Unwrapping loops even further
if (imIn->bands == 4) {
for (xx = 0; xx < imOut->xsize; xx++) {
// Body, 4 channels
}
} else if (imIn->bands == 3) {
for (xx = 0; xx < imOut->xsize; xx++) {
// Body, 3 channels
}
} else {
for (xx = 0; xx < imOut->xsize; xx++) {
// Body, 1 and 2 channels
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.