1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
from numpy import *
import PIL
import Image
import numpy
import matplotlib
import matplotlib.pyplot as plt
pathHG = "E:\\10_GOCI2\\SOFT\\Band_00\\20150204_120056_972_IM_00_00_01_H.image"
#pathLG = "E:\\10_GOCI2\\SOFT\\Band_00\\20150204_120057_404_IM_00_00_01_L.image"
fid = open(pathHG, "rb")
HG = reshape(fromfile(fid, dtype=uint16),(2720,2720))
fid.close()
#fid = open(pathLG, "rb")
#LG = reshape(fromfile(fid, dtype=numpy.uint12),(2720,2720))
#fid.close()
imgplot = plt.imshow(HG)
plt.show() |
Partager