for (int h = 0; h < KERNEL_LINE_DIM; h++) {
for (int z = 0; z < KERNEL_LINE_DIM; z++) {
int sample = bandDataArray[pos + (z - 1) * srcPixelStride
+ (h - 1) * srcScanlineStride + bandOffsets[k2] ] & 0xff;
pixelKernel[h][z] = sample;
<BUG>if (byteLookupTable[sample] != destinationNoDataByte) {
</BUG>
weight |= (1 << (4 * h + z));
} else {
weight &= (0xffff - (1 << 4 * h + z));

for (int h = 0; h < KERNEL_LINE_DIM; h++) {
for (int z = 0; z < KERNEL_LINE_DIM; z++) {
int sample = bandDataArray[pos + (z - 1) * srcPixelStride
+ (h - 1) * srcScanlineStride + bandOffsets[k2] ] & 0xff;
pixelKernel[h][z] = sample;
if (byteLookupTable[k2][sample] != destinationNoDataByte[k2]) {
weight |= (1 << (4 * h + z));
} else {
weight &= (0xffff - (1 << 4 * h + z));
