X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 30 Mar 2017 10:38 AM by  MariM
Resizing raster cuts and shifts image
 10 Replies
Sort:
You are not authorized to post a reply.
Author Messages

Deleted User



New Member


Posts:11
New Member


--
24 Mar 2017 03:56 PM
    Hi, Has anyone seen this? I'm resampling a moderate raster (118 MB, 8-bit grayscale) 8 --> 1 with cubic convolution. When its done, the image has been sliced vertically and re-shuffled. I can't show the data, but schematically it looks like this: before after abcdefghijk defghijkabc abcdefghijk defghijkabc abcdefghijk defghijkabc abcdefghijk defghijkabc Thanks

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    27 Mar 2017 07:09 AM
    What version of ENVI are you using and what tool are you using?

    Deleted User



    New Member


    Posts:11
    New Member


    --
    27 Mar 2017 11:09 AM
    Hi, I am using ENVI 5.3.2 Rev 309742, bld: 4/6/2016 I am using the Resize Data tool in Raster Management.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    27 Mar 2017 11:15 AM
    So you are just trying to change the pixel size? What do you mean by 8->1? A pixel resize of 8m to 1m? Is the input data in ENVI format or another? Are you saving the result to the same directory as the input image and if so, do they have the same name? Does this behavior occur with other images? For example, with ENVI's sample dataset qb_boulder_msi found in the \Exelis\ENVI53\data directory?

    Deleted User



    New Member


    Posts:11
    New Member


    --
    29 Mar 2017 09:54 AM
    Yes I am resampling to speed up a subsequent task in the workflow. I am using an xfac and yfac of 0.125 (1/8) and cubic convolution.I save to a file and use a different name indicating the new resolution.I have had this happen on more than one file, but of course the one I tried just now behaved as expected. I try to reproduce the problem. If it works on my original data - great - I will shrug this off. If not, I will look closer at the problem. Thanks,

    Deleted User



    New Member


    Posts:11
    New Member


    --
    29 Mar 2017 03:17 PM
    Hi, So I tried again with another raster and I still get a vertical slice and swap. Maybe this happens only when I operate on the whole image? I tried a null-resizing (x and yfactor = 1.0) and it still did the same thing.I will keep trying and post any results.

    Deleted User



    New Member


    Posts:11
    New Member


    --
    29 Mar 2017 03:25 PM
    Hi, Another observation. If I go immediately from entering my xfac and yfac (in my case each equals 0.125) to the resampling method, the resampling methods are those for interpolating. Cubic convolution should not be available when my factors are less than 1. If I twiddle the button again, the proper methods for down-sampling show up. The resampling loks right, but I still get the sliced and swapped output.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    30 Mar 2017 07:29 AM
    Can you post the header file of the image you are trying to resize? I can generate some dummy data and try to reproduce the issue. Note that in the Resize data dialog, you must select 'enter' for the entry to register in the dialog and adjust the parameters

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    30 Mar 2017 10:38 AM
    Say what?

    Deleted User



    New Member


    Posts:11
    New Member


    --
    30 Mar 2017 12:35 PM
    Hi, I'm trying to use the "document manager" in the Rich Text Editor to attach a .hdr, but I can't see my files or navigate around. I had been just bringing in a geotif and trying to resize. If I save it out in ENVI format, and operate on that data, the problem does not occur. So, that is what I would call a work-around; maybe that is a step I should always be doing?Do you have any interest in seeing why the geotiff behaves this way? If so I will have to get the file to you via another route.Thanks,

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    30 Mar 2017 01:03 PM
    Yeah, I was just going to have you copy/paste the contents of the header but if the input is only a problem in another format such as TIFF, we can try to reproduce another way. For example, if you open ENVI's sample dataset qb_boulder_msi (under the ENVIxx\data directory) and save this to TIFF. Then try the same process, do you see the behavior? The Resize data tool has been in ENVI for ages and the only time I have seen this sort of behavior is if the TIFF and ENVI file result end up in the same directory with the same name. In ENVI Classic, opening the TIFF would also read the ENVI format file .hdr and cause weird offsets and such.
    You are not authorized to post a reply.