你如何在记忆中看到一张高光谱图像(3d),使用蟒蛇令人深思的树冠分布?
发布于 2016-06-22 10:16:55
安装光谱Python (间谍)是最好的方法:
C:\Users\Me> pip install spectral
一旦安装了模块,就可以很容易地通过以下方法将高光谱图像读入内存:
>>> import spectral
>>> img = spectral.open_image(<HSI_filename>)
发布于 2019-01-08 13:21:31
安装间谍包。使用ipython终端。
ipython --pylab
要读取到内存并查看HSI:
from spectral import*
import numpy as np
var=open_image(r"C:\<give_image_file_location>")
img= var.load() #save as ndarray
np.save(outimg, img) #save image to a binary file in .npy format
imshow(var) #view image in some bands
https://stackoverflow.com/questions/37960372
复制相似问题