public static void main(final String[] args) {
        try {
            DataOutputStream dos = new DataOutputStream(new FileOutputStream("Resources/test.raw"));
            int imageWidth = 15;
            int imageHeight = 20;
            dos.writeInt(imageWidth);
            dos.writeInt(imageHeight);

            float it = 0;

            for (int i = 0; i < imageWidth; i++) {
                for (int j = 0; j < imageHeight; j++) {
                    dos.writeFloat(it);
                    it++;
                }
            }

            dos.close();
        } catch (FileNotFoundException e) {
        } catch (IOException e) {
        }
    }