資源簡介
該資源為高光譜異常檢測算法RX的MATLAB代碼,先用LOAD函數讀取高光譜數據,然后用此代碼檢測目標。該代碼主要用于檢測小目標。
代碼片段和文件信息
function?Result?=?RXD(HIM)
%?By?Yulei?Wang?(last?modified?on?03/18/2014)
%?RXD:?anomaly?detector
%???????RXD?performs?the?commonly?used?RX?anomaly?detector?based?on
%???????covariance?matrix
%???????This?funcion?is?a?global?RX?detector?in?which?covariance?matrix?is
%???????calculated?only?once?using?all?the?data?points
%?Usage:
%???Result?=?RXD(HIM)
%?Inputs:
%???HIM?-?3D?data?matrix?(XX*YY*bnd)?which?is?the?original?hyperspectral
%?????????imagery?data
%?Outputs:
%???Result?-?Detector?output?(XX*YY)
%?------------------------?RX?Algorithm?--------------------------------------
display(‘start?RXD?algorithm‘);%顯示
t1?=?cputime;
[XXYYbnd]?=?size(HIM);%?XX為圖像的長度?YY為圖像的高度?bnd為圖像的波段數
r?=?reshape(HIMXX*YYbnd)‘;%將HTM中各個像素點的像素值放入到r(行數bnd?列數xx*yy)矩陣中
- 上一篇:一維非穩態導熱熱傳導Matlab程序
- 下一篇:最小二乘影像匹配程序matlab
評論
共有 條評論