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

Home » Public Forums » archive » Re: hist_2d question
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: hist_2d question [message #64294 is a reply to message #64291] Tue, 16 December 2008 09:49 Go to previous message
Chris[6] is currently offline  Chris[6]
Messages: 84
Registered: July 2008
Member
On Dec 16, 3:45 am, "Jeff N." <jeffnettles4...@gmail.com> wrote:
> Hi folks,
>
> I'm working with 2d histograms for the first time, and have a question
> the documentation doesn't seem to answer (or i missed it).
>
> Is there  a way to construct your bins such that you'll know how many
> output DN your image has?  I want to put a color table on my image,
> and have been constructing color tables to match the number of output
> DN, which is fine but i'm wondering if there's a way to ensure 256 DN
> in the output.  I'm sure the answer to this question is "make your
> bins right", but i'm wondering if there's a straightforward way to
> calculate how to do that.
>
> Thanks for any help,
> Jeff

I don't know of any easy way to do this, but I assume you want the
__peak__ number of counts in a bin to be 256 (the total number is just
the number of datapoints you feed into the histogram call, unless you
clip out the edges). Why not just use bytscl() to scale the result
afterwards?
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: itools crash
Next Topic: Re: EOS_SW_ATTACH loops

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

Current Time: Tue Dec 02 12:17:24 PST 2025

Total time taken to generate the page: 0.16244 seconds