| 查看: 3601 | 回复: 0 | |||
niuran1212木虫 (知名作家)
|
[求助]
IDL读入.tif格式文件,IDL高手请进
|
|
本人初学IDL用已有的脚本读入.tif格式的文献遇到问题 程序如下: function readtiffstack,imagefile,rect=rect,start_frame=start_frame, $ stop_frame=stop_frame ok = query_tiff(imagefile, info) start = 0 stop = info.num_images-1 if (keyword_set(start_frame)) then start = start_frame if (keyword_set(stop_frame)) then stop = stop_frame if (keyword_set(rect)) then $ imgarr = bytarr(rect[2]-rect[0],rect[3]-rect[1],stop-start+1) $ else imgarr=bytarr(info.dimensions[0],info.dimensions[1],stop-start+1) if (ok) then begin for i=start,stop do begin if (keyword_set(rect)) then $ img=read_tiff(imagefile,image_index=i,sub_rect=rect) $ else img=read_tiff(imagefile,image_index=i) s=size(a) if (s[0] eq 3) then begin imgarr = img i = stop endif else begin imgarr[*,*,i-start] = img endelse endfor endif return, imgarr end 我以一下格式调用:IDL> a = readtiffstack('filename.tif')只输入文件名或者全部路径都出现一下问题: % Expression must be a structure in this context: INFO. % Execution halted at: READTIFFSTACK 16 D:\IDL\everything\readtiffstack.pro % $MAIN$ 这是啥原因?图像要放在IDL安装路径下吗? |
» 猜你喜欢
推荐一本书
已经有11人回复
基金申报
已经有4人回复
计算机、0854电子信息(085401-058412)调剂
已经有4人回复
国自然申请面上模板最新2026版出了吗?
已经有9人回复
溴的反应液脱色
已经有6人回复
纳米粒子粒径的测量
已经有7人回复
常年博士招收(双一流,工科)
已经有4人回复
参与限项
已经有5人回复
有没有人能给点建议
已经有5人回复
假如你的研究生提出不合理要求
已经有12人回复
找到一些相关的精华帖子,希望有用哦~
基于IDL的PCA分析代码及矿化蚀变提取程序源代码pro
已经有33人回复
wiley投稿不成功,格式问题
已经有26人回复
根据ENVI自带例子做的波段运算IDL程序帮忙看看有什么问题?
已经有3人回复
IDL
已经有4人回复
enviidl8 教程 (已搜索)【转载】
已经有51人回复
关于无水无氧反应条件的控制,有做过的虫子请进,好的建议金币300重奖,追加中
已经有38人回复
IDL编写一个模型界面
已经有3人回复
如何将.tif格式转化成.dm3格式
已经有9人回复
CAD做的图怎么存成清晰地TIF格式文件呢
已经有6人回复
.txt格式的文件怎么读入Jade5啊?
已经有4人回复
【分享】建议大家用用IDL编程或做图像和科学数据的处理吧
已经有11人回复
杂志的tif格式文件要求
已经有3人回复
科研从小木虫开始,人人为我,我为人人












回复此楼
点击这里搜索更多相关资源