1 Star 1 Fork 0

alphakappa / E_CEM-for-Hyperspectral-Target-Detection

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
demo.py 1000 Bytes
一键复制 编辑 原始数据 按行查看 历史
Rui ZHAO 提交于 2019-10-07 15:45 . Update demo.py
#!/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()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/alphakappa/E_CEM-for-Hyperspectral-Target-Detection.git
git@gitee.com:alphakappa/E_CEM-for-Hyperspectral-Target-Detection.git
alphakappa
E_CEM-for-Hyperspectral-Target-Detection
E_CEM-for-Hyperspectral-Target-Detection
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891