Python实现Collaborative Representation Detector(CRD)高光谱异常检测算法
importscipy.ioassciofromscipy.linalgimportpinvimportnumpyasnpimportmatplotlib.pyplotaspltimporttimedefCRD(mat,win_in,win_out,regularization):rows,cols,bands=mat.shape#XX为图像的长度YY为图像的高度band为图像的波段数result