private boolean doImagesMatch(final int w, final int h, final int[] classicRgb, final BufferedImage image) {
        final int iW = image.getWidth();
        final int iH = image.getHeight();
        if (iW != w || iH != h) {
            return false;
        }
        final int[] argb = new int[w * h];
        image.getRGB(0, 0, w, h, argb, 0, w);
        for (int i = 0; i < argb.length; i++) {
            if ((argb[i] & 0x00ffffff) != (classicRgb[i] & 0x00ffffff)) {
                return false;
            }
        }
        return true;
    }
Reads files in the BigTIFF samples folder and compares the BigTIFF files against the standard "classic" tiff image.
src/test/java/org/apache/commons/imaging/formats/tiff/TiffBigTiffTest.java