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

Home » Public Forums » archive » Sorting and image rescaling
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: Sorting and image rescaling [message #25311 is a reply to message #25176] Mon, 28 May 2001 14:50 Go to previous messageGo to previous message
Wayne Landsman is currently offline  Wayne Landsman
Messages: 117
Registered: January 1997
Senior Member
Bill wrote:

>
> Some of our band images are on the order of 2500 by 10000. For such band
> images this line can take over 30 seconds per band. This is a moderate
> nuisance at the moment, but we are planning to update our calibration ,
> and reprocess 1000s of multiband images with a new calibration.
> Naturally we want to update the jpegs to reflect this new calibration.
> It appears that this single line will extend reprocessing by a couple of
> days. I don't like this. This yields the following questions:
>
> 1. Does anyone know a better general approach to such a rescaling that
> avoids the need to sort the data, or sort more than a fraction of the
> data?

Provided your images are well-behaved, I would think it would suffice to
sample a few thousand pixels distributed uniformly over your image to
establish the scaling. For all the but the most bizarre histograms of
pixel intensities, I would think a few thousand samples is a good
approximation.

An astronomical application can be found in the program sky.pro in
http://idlastro.gsfc.nasa.gov/ftp/pro/idlphot/. This program establishes
a grid of about 4000 pixel values uniformly distributed across the
image. It then runs a fairly complicated program to throw out outliers
(assumed in astronomy to be overwhelmingly positive) to establish a mean
sky and sigma. For display purposes one can then choose to display
between say sky - 2*sigma to sky + 20*sigma.

--Wayne Landsman landsman@mpb.gsfc.nasa.gov
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: code snippet
Next Topic: Multiple surface plotting

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

Current Time: Wed Oct 08 13:07:10 PDT 2025

Total time taken to generate the page: 0.00407 seconds