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

Home » Public Forums » archive » Re: I have committed a sin CONGRID
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: I have committed a sin CONGRID [message #28384 is a reply to message #28380] Thu, 06 December 2001 06:22 Go to previous message
Jaco van Gorkom is currently offline  Jaco van Gorkom
Messages: 97
Registered: November 2000
Member
dmarshall@ivory.trentu.ca wrote:
> I was using CONGRID to resize an RGB image array which is [3,x,y] large
> I just realized CONGRID will not resize the R,G, and B planes separately.
> I will get a kind of smeared/diluted image, which looks OK, but....
> I _know_ it's obvious ... now.

Is it obvious? If you resize to CONGRID(image, 3, newx, newy) ?
From the online help (IDL 5.4):
[...] when shrinking an array, [...] CONGRID just resamples the array.
[when expanding an array,] CONGRID automatically uses linear interpolation
if the input array is 3-dimensional.
So, as long as you do not resize the first dimension (3), shouldn't you be
ok?

Jaco
[Message index]
 
Read Message
Read Message
Previous Topic: Re: [Offtopic] Re: Strange problem
Next Topic: Re: convert string into the name of a variable

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

Current Time: Fri Oct 10 18:40:22 PDT 2025

Total time taken to generate the page: 0.16341 seconds