Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Problem wit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 5 Topic 5655 of 5734
Post > Topic >>

Re: Problem with histogram calculation - please need help

by moxament@[EMAIL PROTECTED] Apr 21, 2008 at 07:52 AM

On 21 =C1=F0=F1, 16:43, David Fanning <n...@[EMAIL PROTECTED]
> wrote:
> moxam...@[EMAIL PROTECTED]
 writes:
> > I have a floating-point array d with dimensions 300x300. The minimum
> > value of the array is 3.07527 x 10^9 and the maximum value is  1054.91
> > x 10^9. I can not calculate the histogram of the array. I get the
> > following message:
>
> > ENVI> hist =3D HISTOGRAM(d)
> > % Array has too many elements.
> > % Execution halted at: $MAIN$.
>
> > Can anyone tell me how can I overcome this problem please.
>
> I think I would set your bin size more appropriately. :-)
>
> Something like this would probably work:
>
>   binsize =3D (Max(array) - Min(array)) / 100
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Hi Dr. Fanning,

Thank you very much for your response. I did what you said and I did
not get the error message. But the resulted histogram is incorrect. I
can see the histogram of the image (array) in ENVI correctly but what
I want is to calculate the histogram in my algorithm code using the
HISTOGRAM function. I can not understand what I can do and why I have
so much troubles with this function. It is critical for me to
calculate the histogram of the image (array) using the HISTOGRAM
function. Please, do you know why the resulted histogram from this
function is wrong and what I can to in order to calculate the same
histogram that the ENVI shows.

your help is appreciated,

Dabboor




 5 Posts in Topic:
Problem with histogram calculation - please need help
moxament@[EMAIL PROTECTED  2008-04-21 06:35:03 
Re: Problem with histogram calculation - please need help
David Fanning <news@[E  2008-04-21 07:43:04 
Re: Problem with histogram calculation - please need help
moxament@[EMAIL PROTECTED  2008-04-21 07:52:16 
Re: Problem with histogram calculation - please need help
David Fanning <news@[E  2008-04-21 09:30:14 
Re: Problem with histogram calculation - please need help
David Fanning <news@[E  2008-04-21 09:35:33 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 2:40:20 CDT 2008.