pdq/java/src/main/java/pdqhashing/hasher/PDQHasher.java [94:116]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      throws IOException
  {
    long t1, t2;

    t1 = System.nanoTime();
    BufferedImage img = null;
    try {
      img = ImageIO.read(new File(filename));
    } catch (IOException e) {
      throw e;
    }
    t2 = System.nanoTime();
    hashingMetadata.readSeconds = (float)((t2 - t1) / 1e9);

    int numRows = img.getHeight();
    int numCols = img.getWidth();
    hashingMetadata.imageHeightTimesWidth = numRows * numCols;

    float[] buffer1 = MatrixUtil.allocateMatrixAsRowMajorArray(numRows, numCols);
    float[] buffer2 = MatrixUtil.allocateMatrixAsRowMajorArray(numRows, numCols);
    float[][] buffer64x64 = MatrixUtil.allocateMatrix(64, 64);
    float[][] buffer16x64 = MatrixUtil.allocateMatrix(16, 64);
    float[][] buffer16x16 = MatrixUtil.allocateMatrix(16, 16);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



pdq/java/src/main/java/pdqhashing/hasher/PDQHasher.java [214:236]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      throws IOException
  {
    long t1, t2;

    t1 = System.nanoTime();
    BufferedImage img = null;
    try {
      img = ImageIO.read(new File(filename));
    } catch (IOException e) {
      throw e;
    }
    t2 = System.nanoTime();
    hashingMetadata.readSeconds = (float)((t2 - t1) / 1e9);

    int numRows = img.getHeight();
    int numCols = img.getWidth();
    hashingMetadata.imageHeightTimesWidth = numRows * numCols;

    float[] buffer1 = MatrixUtil.allocateMatrixAsRowMajorArray(numRows, numCols);
    float[] buffer2 = MatrixUtil.allocateMatrixAsRowMajorArray(numRows, numCols);
    float[][] buffer64x64 = MatrixUtil.allocateMatrix(64, 64);
    float[][] buffer16x64 = MatrixUtil.allocateMatrix(16, 64);
    float[][] buffer16x16 = MatrixUtil.allocateMatrix(16, 16);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



