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

Home » Public Forums » archive » Re: idl variable naming
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: idl variable naming [message #48708] Wed, 17 May 2006 05:42
gareth.j.roberts@kcl. is currently offline  gareth.j.roberts@kcl.
Messages: 2
Registered: May 2006
Junior Member
Thanks for your response Greg.

The images are 2319*2477 float arrays, although perhaps only half the
image pixels contain data. I have an image of the mean value for each
pixel (after looping over all the input images) so I know beforehand
which pixels in the output (median) image will contain a value.

You are quite right. Perhaps I could store the index of each pixel in
the image which has a value and then store all the values associated
with each pixel which will have a value

eg fltarr(51, all pixels which will have a value)
where 50 cols are for storing the values (50 is the max a pixel
contains) and 1 col for storing the index - calculate the median and
then fill in the output image using the index values.

I will give it a go - thanks
Re: idl variable naming [message #48709 is a reply to message #48708] Wed, 17 May 2006 04:57 Go to previous message
greg michael is currently offline  greg michael
Messages: 163
Registered: January 2006
Senior Member
Because if you can hold a fltrarr(nrows,ncols,50) in memory, I'd
suggest you accumulate your values there first, then take the median.

regards,
Greg
Re: idl variable naming [message #48712 is a reply to message #48709] Wed, 17 May 2006 03:22 Go to previous message
greg michael is currently offline  greg michael
Messages: 163
Registered: January 2006
Senior Member
How big are your images?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: idl variable naming
Next Topic: Re: ENVI_OUTPUT_TO_EXTERNAL_FORMAT

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

Current Time: Wed Oct 08 19:16:21 PDT 2025

Total time taken to generate the page: 0.00535 seconds