代码拉取完成,页面将自动刷新
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Feb 2019 @author: Rui ZHAO
The following code shows how to run the E-CEM detector of our paper:
R Zhao, Z Shi, Z Zou, Z Zhang, Ensemble-Based Cascaded Constrained Energy Minimization for Hyperspectral Target Detection. Remote Sensing 2019.
"""
from utils import Data
from e_cem import ECEM
def main():
data = Data('hyperspectral_data//san.mat') # load data
ecem = ECEM()
ecem.parmset(**{'windowsize': [1/4, 2/4, 3/4, 4/4], # window size
'num_layer': 10, # the number of detection layers
'num_cem': 6, # the number of CEMs per layer
'Lambda': 1e-6, # the regularization coefficient
'show_proc': True}) # show the process or not
result = ecem.detect(data, pool_num=4) # detection (we recomemend to use multi-thread processing to speed up detetion)
ecem.show([result], ['E-CEM']) # show
if __name__ == '__main__':
main()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。