fix some bugs

This commit is contained in:
SikongJueluo
2024-05-17 16:47:28 +08:00
parent d345fed4e7
commit 1ad504cb9f
5 changed files with 17 additions and 10 deletions

View File

@@ -1,10 +1,10 @@
import imageio
import numpy as np
im_width = 512
im_height = 256
im_width = 640
im_height = 480
if __name__ == '__main__':
raw = np.fromfile('./out.bin', dtype=np.int16)
raw = np.fromfile('./out.bin', dtype=np.int32)
image = raw.reshape((im_height, im_width))
imageio.imsave("./out.png", image)