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

Home » Public Forums » archive » Re: Neither CONGRID nor REBIN...?
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: Neither CONGRID nor REBIN...? [message #48711 is a reply to message #48710] Wed, 17 May 2006 03:29 Go to previous message
Wayne Landsman is currently offline  Wayne Landsman
Messages: 117
Registered: January 1997
Senior Member
"greg michael" <greg.michael@gmail.com> wrote in message
news:1147859650.649956.118330@i40g2000cwc.googlegroups.com.. .
>
> I want to reduce an image by an arbitrary factor and have that it still
> looks ok - i.e. the pixels should be somehow averaged, not just
> sampled. CONGRID can handle the arbitrary part and REBIN the averaging
> part, but neither both. Anyone know a simple solution?

You might try the function frebin.pro in
http://idlastro.gsfc.nasa.gov/ftp/pro/image/frebin.pro
From the documentation

; EXPLANATION:
; FREBIN is an alternative to CONGRID or REBIN. Like CONGRID it
; allows expansion or contraction by an arbitary amount. ( REBIN requires
; integral factors of the original image size.) Like REBIN it conserves
; flux by ensuring that each input pixel is equally represented in the
output
; array. The fact that frebin.pro conserves flux might be overkill
for you since you just want to ensure that the reduced image looks OK. But
image reduction should run pretty quickly.--Wayne Landsman
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: ENVI_OUTPUT_TO_EXTERNAL_FORMAT
Next Topic: Subscription of array (the *-problem)

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

Current Time: Wed Oct 08 19:34:11 PDT 2025

Total time taken to generate the page: 0.00452 seconds