不需要编程,在ENVI中直接把ROI输出为ASCII:影像窗口---右键---ROI tool--file---output ROI to ASCII,输出结构的格式如下
; ENVI Output of ROIs (4.5) [Tue Apr 26 16:56:46 2011]
; Number of ROIs: 1
; File Dimension: 3600 x 1800
;
; ROI name: Region #1
; ROI rgb value: {255, 0, 0}
; ROI npts: 3064
; ID X Y Lat Lon B1 B2
1 2750 501 40.000000 94.900000 1570 1763
2 2749 501 40.000000 94.800000 1483 1707
3 2749 502 39.900000 94.800000 1672 1863
4 2750 502 39.900000 94.900000 1690 1983
5 2751 502 39.900000 95.000000 1794 2108
6 2748 502 39.900000 94.700000 1673 1787
7 2747 503 39.800000 94.600000 1665 1806
8 2748 503 39.800000 94.700000 1696 1888
9 2749 503 39.800000 94.800000 1801 2075
10 2750 503 39.800000 94.900000 1887 2276
11 2751 503 39.800000 95.000000 2021 2490
12 2752 503 39.800000 95.100000 2147 2755
13 2753 503 39.800000 95.200000 2282 2960
14 2745 504 39.700000 94.400000 1660 1893
15 2746 504 39.700000 94.500000 1688 1985
16 2747 504 39.700000 94.600000 1742 2016
17 2748 504 39.700000 94.700000 1821 2013
18 2749 504 39.700000 94.800000 1913 2204
19 2750 504 39.700000 94.900000 2107 2618
你用Excel直接导入输出的txt文件就可以了。