[index], linearPixels1[index + 1], linearPixels1[index + 2], linearPixels1[index + 3]];
                if (checkPixel(linearColor1, expectedLinearColor) == false) {
                    failed = true;
                    debug("Pixel comparison failed for the 2nd linear image. Pixel at [" + jj + ", " + ii + "] should be (" + color + "), but the actual color is (" + linearColor1 + ")");
                }
            }
        }
    }
    if (failed == false) {
        testPassed("All pixels comparision passe