显示加扰图像的光谱 Python imshow

问题描述

我正在学习光谱 Python 并使用 their own documentation 和示例图像文件将多光谱图像显示为 RGB。然而,由于某种原因,我的形象显得有些混乱。我已经通过在 MultiSpec 中打开它来测试图像文件,它看起来应该如此,所以我认为文件没有损坏。我的代码如下:

import spectral as s
import matplotlib as mpl

path = '/content/92AV3C.lan'

img = s.open_image(path)

print(img)

#Load and display hyperspectral image
arr = img.load()
view = s.imshow(arr,(29,19,9))
print(view)

#Load and display Ground truth image
gt = s.open_image('92AV3GT.GIS').read_band(0)
view = s.imshow(classes=gt)

输出如下:

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)