int index = baseIndex - 1 + z + (h - 1)
if (index < roiDataLength) {
tmpROI += ((byte) (roiDataArray[index] & 0xff) != 0 ? 1
: 0);
}
<BUG>if (byteLookupTable[(int) pixelKernel[h][z]] != destinationNoDataByte) {
</BUG>
weight |= (1 << (4 * h + z));
} else {
weight &= (0xffff - (1 << 4 * h + z));

int index = baseIndex - 1 + z + (h - 1)
if (index < roiDataLength) {
tmpROI += ((byte) (roiDataArray[index] & 0xff) != 0 ? 1
: 0);
}
if (byteLookupTable[k2][(int) pixelKernel[h][z]] != destinationNoDataByte[k2]) {
weight |= (1 << (4 * h + z));
} else {
weight &= (0xffff - (1 << 4 * h + z));
