private void checkSubImage(final File target, final AbstractTiffRasterData fullRaster, final int x0, final int y0, final int width, final int height)
            throws ImagingException, IOException {
        final TiffImagingParameters params = new TiffImagingParameters();
        params.setSubImage(x0, y0, width, height);
        final AbstractTiffRasterData partRaster = readRasterFromTIFF(target, params);
        assertEquals(width, partRaster.getWidth(), "Invalid width in partial for " + target.getName());
        assertEquals(height, partRaster.getHeight(), "Invalid height in partial for " + target.getName());
        for (int y = y0; y < y0 + height; y++) {
            for (int x = x0; x < x0 + width; x++) {
                final float vFull = fullRaster.getValue(x, y);
                final float vPart = partRaster.getValue(x - x0, y - y0);
                assertEquals(vFull, vPart, "Invalid value match for partial at (" + x + "," + y + ") for " + target.getName());
            }
        }
    }
Performs tests that access the content of TIFF files containing floating point data.
src/test/java/org/apache/commons/imaging/formats/tiff/TiffFloatingPointReadTest.java