当我使用脚本时,窗口闪烁然后消失,所以我只想知道如何让它保持很长时间?非常感谢!你可以得到这个python包形式
from spectral import *
img = open_image('92AV3C.lan')
view = imshow(img, (29, 19, 9))
def imshow(data=None, bands=None, classes=None, source=None, colors=None,
figsize=None, fignum=None, title=None, **kwargs):
import matplotlib.pyplot as plt
from spectral import settings
from .graphics import get_rgb
set_mpl_interactive()
view = ImageView()
if data is not None:
view.set_data(data, bands, **kwargs)
if classes is not None:
view.set_classes(classes, colors, **kwargs)
if source is not None:
view.set_source(source)
elif data is not None and len(data.shape) == 3 and data.shape[2] > 3:
view.set_source(data)
if fignum is not None or figsize is not None:
fig = plt.figure(num=fignum, figsize=figsize)
view.show(fignum=fig.number)
else:
view.show()
if title is not None:
view.set_title(title)
return view