Skip to content
ek2061 edited this page Jan 4, 2021 · 7 revisions

如何使用

pip install git+https://github.com/ek2061/hsipl_tools

變數說明

變數 中文 英文 型態 說明
HIM 高光譜影像 Hyperspectral Image 3D-array [高, 寬, 波段]
r 高光譜訊號 Hyperspectral Signal 2D-array [波段, 高x寬]
N 高光譜訊號數量 Hyperspectral Signal Number int 高x寬
L 波段數量 band number int X
d 感興趣目標點(D) Desired Signature 2D-array [波段, 1],少數可多點合併
no_d 非感興趣目標點(U) Undesired Signature 2D-array [波段, 1],忘了哪些可多點合併
R (自)相關矩陣 (Auto) Correlation Matrix 2D-array [波段, 波段]
K 共變異數矩陣 Covariance Matrix 2D-array [波段, 波段]
u 均值(µ) mean value 2D-array [波段, 1]
win_height 視窗高 height of windows int 裁切視窗高
win_width 視窗寬 width of windows int 裁切視窗寬
max_it 最大迭代次數 max iter int 最多做幾次就離開
λ hCEM微調參數 X int 改了差別很小
e hCEM容許誤差 X int 很小例如1e-6
Weight 權重 Weight 2D-array 例如拿ED的結果reshape(-1)
p1 1號光譜點 point1 2D-array [波段, 1]
p2 2號光譜點 point2 2D-array [波段, 1]
sig 忘了 忘了 int 1,10,100等等亂試,忘記這是幹嘛的
imagecube 就HIM啦 X 3D-array 去看HIM
num 挑選波段數 X int X

有點懶,等我想寫再補

Clone this wiki locally