| 1 | 1/1 | 返回列表 |
| 查看: 3610 | 回復(fù): 0 | ||
niuran1212木蟲 (知名作家)
|
[求助]
IDL讀入.tif格式文件,IDL高手請進
|
|
本人初學(xué)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 我以一下格式調(diào)用:IDL> a = readtiffstack('filename.tif')只輸入文件名或者全部路徑都出現(xiàn)一下問題: % Expression must be a structure in this context: INFO. % Execution halted at: READTIFFSTACK 16 D:\IDL\everything\readtiffstack.pro % $MAIN$ 這是啥原因?圖像要放在IDL安裝路徑下嗎? |
找到一些相關(guān)的精華帖子,希望有用哦~
| 1 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 材料學(xué)碩301分求調(diào)劑 +7 | Liyouyumairs 2026-03-21 | 7/350 |
|
|---|---|---|---|---|
|
[考研] 初試 317 +7 | 半拉月丙 2026-03-20 | 7/350 |
|
|
[考研] 0703化學(xué)調(diào)劑 +4 | 妮妮ninicgb 2026-03-21 | 4/200 |
|
|
[考研] 313求調(diào)劑 +4 | 肆叁貳壹22 2026-03-19 | 4/200 |
|
|
[考研] 一志愿重慶大學(xué)085700資源與環(huán)境總分308求調(diào)劑 +7 | 墨墨漠 2026-03-20 | 7/350 |
|
|
[考研] 材料學(xué)學(xué)碩080502 337求調(diào)劑-一志愿華中科技大學(xué) +4 | 順順順mr 2026-03-18 | 5/250 |
|
|
[考研] 材料工程(專)一志愿985 初試335求調(diào)劑 +3 | hiloiy 2026-03-17 | 4/200 |
|
|
[考研] 299求調(diào)劑 +6 | △小透明* 2026-03-17 | 6/300 |
|
|
[考研] 265求調(diào)劑 +9 | 梁梁校校 2026-03-17 | 9/450 |
|
|
[考研] 一志愿重慶大學(xué)085700資源與環(huán)境專碩,總分308求調(diào)劑 +3 | 墨墨漠 2026-03-18 | 3/150 |
|
|
[考研] 材料專碩英一數(shù)二306 +7 | z1z2z3879 2026-03-18 | 7/350 |
|
|
[考研] 295求調(diào)劑 +4 | 一志愿京區(qū)211 2026-03-18 | 6/300 |
|
|
[考研]
|
簡木ChuFront 2026-03-19 | 8/400 |
|
|
[考研] 0817 化學(xué)工程 299分求調(diào)劑 有科研經(jīng)歷 有二區(qū)文章 +22 | rare12345 2026-03-18 | 22/1100 |
|
|
[考研] 085601材料工程專碩求調(diào)劑 +10 | 慕寒mio 2026-03-16 | 10/500 |
|
|
[考研] 一志愿福大288有機化學(xué),求調(diào)劑 +3 | 小木蟲200408204 2026-03-18 | 3/150 |
|
|
[考研] 材料考研調(diào)劑 +3 | xwt。 2026-03-19 | 3/150 |
|
|
[考研] 085601專碩,總分342求調(diào)劑,地區(qū)不限 +5 | share_joy 2026-03-16 | 5/250 |
|
|
[考研] 收復(fù)試調(diào)劑生 +4 | 雨后秋荷 2026-03-18 | 4/200 |
|
|
[考博] 26申博 +4 | 八6八68 2026-03-16 | 4/200 |
|