public boolean hasTiffRasterData() throws ImagingException {
        if (!hasTiffImageData()) {
            return false;
        }
        final short[] s = getFieldValue(TiffTagConstants.TIFF_TAG_SAMPLE_FORMAT, false);
        return s != null && s.length > 0 && (s[0] == TiffTagConstants.SAMPLE_FORMAT_VALUE_IEEE_FLOATING_POINT
                || s[0] == TiffTagConstants.SAMPLE_FORMAT_VALUE_TWOS_COMPLEMENT_SIGNED_INTEGER);
    }
Indicates whether the content associated with the directory is given in a supported numerical-data format. If this method returns {@code true}, the
Imaging API will be able to extract a TiffRasterData instance from the associated TIFF file using this directory.

@return {@code true} if the directory contains a supported raster data format; otherwise, {@code false}.
@throws ImagingException in the event of an invalid or malformed specification.
src/main/java/org/apache/commons/imaging/formats/tiff/TiffDirectory.java