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

Home » Public Forums » archive » Re: How to scale image in idl?
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: How to scale image in idl? [message #6218] Thu, 16 May 1996 00:00 Go to previous message
Thomas A. McGlynn is currently offline  Thomas A. McGlynn
Messages: 23
Registered: March 1996
Junior Member
David Foster wrote:
>
> peter@hpl.hp.com (Peter Webb) wrote:
>>
>> Watcher (dliu@cs.tufts.edu) wrote:
>> : I've used tv and tvscl to display the image, however it is too honest to
>> : the size of the image itself. Is there a way to scale the image so that
>> : it fits the display window?
>>
>> Use CONGRID to interpolate the image matrix to the window size.
>
> You can also use EXPAND to change the size of an image. It's similar
> to CONGRID and I don't know which one is faster. They have slightly
> different options available.
>
> If the window size is an integer multiple of the image size
> then use the REBIN function as it is significantly faster,
> especially for large images.
>
> Dave Foster
> UCSD Brain Image Analysis Lab
> foster@bial1.ucsd.edu

But if you use REBIN (and maybe CONGRID) read the documentation carefully
and see if what happens to the last column/row is acceptable. When
data is expanded by an integral factor, the last column/row will be repeated
the integral number of times even if the other pixels are being interpolated.
I find the behaviour counter-intuitive but it is fully documented.

Tom McGlynn
tam@silk.gsfc.nasa.gov
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem when using polyfill with maps
Next Topic: (no subject)

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

Current Time: Wed Oct 08 18:36:19 PDT 2025

Total time taken to generate the page: 0.00423 seconds