Re: RESIZE_DOIT with INTERP=1 shifts image !!! [message #51271] |
Fri, 10 November 2006 06:20 |
Josip Krizan
Messages: 5 Registered: November 2006
|
Junior Member |
|
|
On Fri, 10 Nov 2006 14:58:53 +0100, Josip Krizan wrote:
> Hi!
>
> I have problem with applying RESIZE_DOIT procedure with bilinear resampling
> on georeferenced images. It seems to me that resulting image is shifted for
> half size of pixel of original image to right and down, for any rfact<1. Is
> it by design or there is a bug or am i doing something wrong.
> I wrote small test routine to demonstrate this. If someone can just look at
> it ...
>
> Thanks,
>
> Code:
>
Just more...
In help it says that in case of downsampling (RFACT>1.0), you cannot use
bilinear and cubic interpolation, and in case you put INTERP=1 it will be
done as if it were INTERP=0. I put RFACT=1.5 in routine I sent and it is
not true!!! Resized images are different! But there is no shifting of
coordinates.
Forget to tell: ENVI4.3 on Windows XP.
|
|
|