资源描述:
《IDL编程实现图像处理.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、IDL编程实现图像处理proexampleENVI,/RESTORE_BASE_SAVE_FILESENVI_BATCH_INITtlb=widget_base(column=1,mbar=mbar,title='Example',tlb_frame_attr=1,xoffset=500,yoffset=100,xsize=800,ysize=600,RESOURCE_NAME='example')filemenu=widget_button(mbar,value='File')fileopt1=widget_button(filemenu,valu
2、e='Open',event_pro='open_event')fileopt2=widget_button(filemenu,value='Save',/menu)Save1=widget_button(fileopt2,value='binary',uname='savebinary')Save2=widget_button(fileopt2,value='jpg',uname='savejpg')Save3=widget_button(fileopt2,value='bmp',uname='savebmp')Save4=widget_butto
3、n(fileopt2,value='tif',uname='savetif')Save5=widget_button(fileopt2,value='dat',uname='savedat')fileopt3=widget_button(filemenu,value='Exit',event_pro='exit_event',/separator)editmenu=widget_button(mbar,value='Edit')processopt1=widget_button(editmenu,value='K-LTransform',event_
4、pro='K_L_event',/separator)processopt2=widget_button(editmenu,value='HistogramEqualization',event_pro='HistogramEqualization_event',/separator)processopt3=widget_button(editmenu,value='NDVI',event_pro='NDVI_event',/separator)processopt5=widget_button(editmenu,value='ImageSmooth
5、ing',event_pro='IS_event')processopt4=widget_button(editmenu,value='edgeenhancement',/menu)imageopt1=widget_button(processopt4,value='robort',event_pro='robort_event')imageopt2=widget_button(processopt4,value='sobel',event_pro='sobel_event')imageopt3=widget_button(processopt4,v
6、alue='prewitt',event_pro='prewitt_event')helpmenu=widget_button(mbar,value='Help')idlhelp=widget_button(helpmenu,value='IDLhelp',event_pro='help_event')iconbase=widget_base(tlb,row=1,/frame)subdir='resource/bitmaps'mapfile=filepath('open.bmp',subdir=subdir)iconopt1=widget_butto
7、n(iconbase,value=mapfile,/bitmap,event_pro='open_event')mapfile=filepath('save.bmp',subdir=subdir)iconopt2=widget_button(iconbase,value=mapfile,/bitmap,event_pro='Save_event')button5=widget_button(iconbase,value='new.bmp',/bitmap,event_pro='new_event')button3=widget_button(icon
8、base,value='zoom_in.bmp',/bitmap,uvalue='suoxiao')butt