
我使用这里的代码http://www.spectralpython.net/algorithms.html进行高光谱分析,我想使轴和颜色更形状,我也试图使图片的一部分是可见的(植物在哪里)和所有的背景被隐藏。
from PIL import Image
from spectral import *
import spectral.io.aviris as aviris
import numpy
img = open_image('VNIR_plot35_2019-06-11_08-33-55.hdr').load()
v=imshow(vi)
#----ndiv algorithem----发布于 2019-08-01 15:47:44
使用imshow(vi)选择3个波段并显示与彩色图像相同的颜色。要执行相同的操作,请制作另一个超立方体,用于查看3个波段(由您自行决定):
#I have taken bands 1,2 and 3- you can select at your discretion
img2=img[:,:,:3]
import matplotlib.pyplot as plt
#use pyplot's library functions
plt.imshow(img2)
plt.ylabel("y axis")
plt.xlabel("xaxis")
plt.show()你说让颜色更鲜艳是什么意思?
https://stackoverflow.com/questions/57055579
复制相似问题