ENVI主成分分析是通过Principle Components选项生成互不相关的输出波段,达到隔离噪声和减少数据集的维数的方法。
由于多波段数据经常是高度相关的,主成分变换寻找一个原点在数据均值的新的坐标系统,通过坐标轴的旋转来使数据的方差达到最大,从而生成互不相关的输出波段。
主成分(PC)波段是原始波谱波段的线性合成,它们之间是互不相关的。可以计算输出主成分波段(与输入的波谱波段数相同)。第一主成分包含最大的数据方差百分比,第二主成分包含第二大的方差,以此类推,最后的主成分波段由于包含很小的方差(大多数由原始波谱的噪声引起),因此显示为噪声。由于数据的不相关,主成分波段可以生成更多种颜色的。
具体操作:
打开ENVI——File——Open Image File——选择一个影像文件添加

RGB Color——设置RGB为321(不同的影像最佳波段组合不一致)—— No display——New display——Load RGB

点击Transform——Principal Components(主成分分析)——Forward PC Rotation(正向主成分旋转)——Computer New Statistics and Rotate——选择影像文件,设置输出路径,ok,进入漫长等待中......
之后同样设置Gray Scale和RGB Color——Display——New Display——Load,就会显示主成分分析之后的影像;

右击#1——Link Displays——选择需要连接的两个窗口,点击ok ,方便对比。

网友评论