public double horizontalDensityInches() {
        if (isInInches()) {
            return horizontalDensity;
        }
        return horizontalDensity * PIXEL_PER_INCH / unitLength;
    }
Used to specify pixel density and physical dimensions when reading or storing image information.
src/main/java/org/apache/commons/imaging/PixelDensity.java