我正在使用spectral来查看python中特定波段的高光谱图像。这是我的代码。
from spectral import *
img=open_image('flc1.lan')
view = imshow(img)
print(view)
gt=open_image('flc1.lan').read_band(0)
view1= imshow(classes=gt)
print(view1)图像确实会弹出,但随后会关闭。有没有像waitkey这样的功能来保持窗口?
发布于 2019-01-15 15:15:22
作为替代方案,您可以使用:
envi.save_image(give_file_name, image_name, ext='hdr')在本地保存图像并在以后查看,由您自行决定
https://stackoverflow.com/questions/46616492
复制相似问题