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

Home » Public Forums » archive » Re: Moving Average on Hyperspectral dataset
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: Moving Average on Hyperspectral dataset [message #53153 is a reply to message #53152] Mon, 26 March 2007 17:38 Go to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Mon, 26 Mar 2007 16:03:28 -0700, rafaloos wrote:

> Hi, all ...
> We are trying to do a moving average on our dataset. The dataset comes
> from a Hyperspectral sensor and has 296 samples, 2000 lines and 492 bands.
> We need to go through each pixel and do a moving average on the spectral
> bands. So in the end we will have a dataset with the same dimensions as
> the original but with smooth spectra. And because of the moving average
> kernel size, we will have some empty bands at the beginning and at the
> end.
>
>
> Here is the code that we are using now ...
>
>>>> > IMAGE = (296, 2000, 492)

image=smooth(image,[1,1,width])

> With the loops the code takes about 3 hours ... Is there a way to speed it
> up ?

If that 1.2GB (*2) array is pushing your memory limits, consider doing
it in "chunks", e.g. 50 samples at a time.

JD
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: strange behaviour of bar_plot
Next Topic: Problems with converting map projection in ENVI

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

Current Time: Thu Oct 09 21:52:04 PDT 2025

Total time taken to generate the page: 2.76468 seconds