首页 > 代码库 > IDL---ENVI

IDL---ENVI

ENVI;启动envifile=envi_pickfile();选择文件dialog,返回值就为fileENVI_OPEN_FIle,file,r_fid=fid;根据文件名打开file,并且返回fidenvi_file_query,fid,NB=NB,NL=NL,NS=NS,dims=dims,data_type=dt,bnames=bnames;根据fid查询图像信息data=http://www.mamicode.com/envi_get_data(fid=fid,dims=dims,pos=0)根据fid得到数据dims:维度"技术分享" title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; margin: 0px; display: inline; padding-right: 0px" border="0" alt="image" src="http://image.mamicode.com/info/201501/20180923080556134034.png" width="244" height="102" />解决方案:在IDL的帮助中搜素resolve_all,通过语法RESOLVE_ALL [, CLASS=string] [, /CONTINUE_ON_ERROR] [, /QUIET] [, RESOLVE_EITHER=string] [, RESOLVE_FUNCTION=string] [, RESOLVE_PROCEDURE=string] [, SKIP_ROUTINES=string] [, UNRESOLVED=variable]在控制台中输入resolve_all,/CONTINUE_ON_ERROR,SKIP_ROUTINES="envi"回车,在savesave,filename="E:\Program Files\Exelis\ENVI51\classic\save_add\envi_canny.sav", /routines

IDL---ENVI