static BufferedImage intMatrixToBufferedImage(Matrix m) { if (m == null) null; int w = m.getWidth(), h = m.getHeight(); int[] pixels = matrixToIntArray(m); ret newBufferedImage(w, h, pixels); }