X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 22 Jun 2007 12:52 PM by  anon
mosaic_doit doesn't resample?
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
22 Jun 2007 12:52 PM
    From the ENVI help (mosaic_doit chapter), i quote the following statement: "You can mosaic and automatically resample individual bands, entire files, and multi-resolution georeferenced images. " How do I turn on the resampling when using a multi-resolution dataset (OMEGA)? When I change the pixel_size argument to my preferred pizel size, the function will merely patch together the images in their original resolutions and relabel the pixel size in the projection info to the specified value. This results in a messed up mosaic ofcourse. I've tried resampling using resize_doit and it works, but results in rather prominent seams which I figure can be avoided by using the auto-resampling in mosaic_doit. Note that manual mosaicing using the ENVI widget works perfectly. Here's how I invoke mosaic_doit (I use the georef_mosaic_setup add-on): georef_mosaic_setup, fids=fid, out_ps=ps, dims=dims, xsize=xsize, ysize=ysize,x0=x0, y0=y0, map_info=map_info ENVI_DOIT, 'MOSAIC_DOIT', dims=dims, fid=fid, pos=pos, /GEOREF, MAP_INFO=map_info, OUT_NAME=datapath+'MOSAIC.dat', OUT_DT=4, xsize=xsize, ysize=ysize, x0=x0,$ y0=y0, pixel_size=ps,background=0,see_through_val=see_through_val, use_see_through=use_see_through

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    22 Jun 2007 12:52 PM
    Hi John, Resampling is performed when you are mosaicking two images in different projections. Are your input images georeferenced and in different resolutions and/or projections? What happens if you perform these same steps through the GUI and not programmatically? -Mari

    Deleted User



    New Member


    Posts:
    New Member


    --
    19 May 2011 07:49 PM
    Hi, I have the same question with John. When I change the pixel_size param or input images with different resolutions, the result would be wrong but with no warns. I use the program on your we b:http://www.ittvis.com/ser...echtip.asp?ttid=3336 .Could you please help me find out what the problem is?
    You are not authorized to post a reply.