comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » mosaic two images in direct graphics
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Mosaic [message #51993 is a reply to message #51423] Tue, 26 December 2006 02:53 Go to previous messageGo to previous message
linglimu is currently offline  linglimu
Messages: 7
Registered: December 2006
Junior Member
"bujji 写道:
"
> Robert,
>
> I had seen MOSAIC_DOIT but I am having 'n' number of files in a
> directory and all the files have to be mosaiced automatically. I am
> facing a problem with the x0, y0 and pos arguments
>
> Regards,
> Prahlad V
>
> Robert Moss wrote:
>> MOSAIC_DOIT is what you are looking for.
>>
>> r
>>
>> bujji wrote:
>>> Hello All,
>>>
>>> I am using IDL6.3 on windows. I am having some raw data sets. using
>>> ENVI routines I had georeferenced the data. Now I wud like to Mosaic
>>> the data.
>>> How to Mosaic the data automatically using ENVI and IDL routines(the
>>> data is georeferenced).
>>>
>>> Please suggest me a suitable way.
>>>
>>> Regards,
>>> Prahlad V



hello ,this was a question troubling me 3 years ago. Through
MOSAIC_DOIT can been used to mosaic the images based on the Envi
platform,but you should provide goe_information as mentioned above. So
the Goe_information is the key question. how to get the
goe_information, Envi doesn't provide.You can use the follow code ,
which is imbedded in Noaa image processing system programed by me .

;-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- *//
;-*-*-*- mosaic the image -*-*-*-*-*-*//
;-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- *//

pro map_mosaic1,fileName1,fileName2,out_Name,dir

cd,dir

;//-*-*-*-*-*-*-*-*-*-*-*-*-合并前两幅图*-*-*-*-*-*-*- *-*-*-*-*-*-*-*-*-*
envi_open_data_file, fileName1,r_fid=fid1;,/NO_REALIZE
if (fid1 eq -1) then begin
envi_batch_exit
return
end


envi_open_data_file, fileName2,r_fid=fid2;,/NO_REALIZE
if (fid2 eq -1) then begin
envi_batch_exit
return
end


fids = [fid1,fid2]

out_ps = [1100,1100];RS
print , 'selecting file over !!'

;////////use georef_mosaic_setup to get the information of the files
georef_mosaic_setup, fids=fids, out_ps=out_ps, dims=dims, xsize=xsize,
ysize=ysize,$
x0=x0, y0=y0, map_info=map_info

;/////set the necessary parameter
use_see_through = [[1L],[1]]
see_through_val = [[0L],[0]]
pos = [[0,1,2,3,4],[0,1,2,3,4]]
print,xsize,ysize

print , 'To select the output file !!'
;/////////Select the output file
;//////////do mosaic
envi_doit, 'mosaic_doit', fid=fids, pos=pos, dims=dims,
out_name=out_Name, $
r_fid=out_fid1, xsize=xsize, ysize=ysize, x0=x0, y0=y0, georef=1,
map_info=map_info, $
out_dt=4, pixel_size=out_ps, background=0,
see_through_val=see_through_val, $
use_see_through=use_see_through
envi_file_mng, id=fid1, /remove
envi_file_mng, id=fid2, /remove
envi_file_mng, id=out_fid1, /remove

end
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Painfully slow IDL startup
Next Topic: Re: Envi: suggest how to save gcps to an ascii file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 14:47:25 PDT 2025

Total time taken to generate the page: 1.43913 seconds