slightly improve the output of image on cpu

This commit is contained in:
Robert Plummer 2018-06-04 19:41:41 -04:00
parent 2e1c1c7438
commit 6b25e95649

View File

@ -386,7 +386,7 @@ ${ this.subKernelOutputVariableNames === null
for (let y = 0; y < image.height; y++) {
result[y] = new Array(image.width);
for (let x = 0; x < image.width; x++) {
result[y][x] = [pixelsData[index + 0], pixelsData[index + 1], pixelsData[index + 2], pixelsData[index + 3]];
result[y][x] = [pixelsData[index++], pixelsData[index++], pixelsData[index++], pixelsData[index++]];
}
}
return result;