fix some bugs
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user