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

Home » Public Forums » archive » distribution of colors for an image
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: distribution of colors for an image [message #41493 is a reply to message #41366] Wed, 27 October 2004 06:37 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Karsten Rodenacker wrote:
> Perhaps
> u=uniq(long(a),sort(long(a)))
> help,u,h
> U LONG = Array[15]
> H LONG = Array[15]
> tends in the direction of understanding?



Oh I see the dist function was a bad example to use
Thanks for this hint.


:-)

Reimar



>
> Regards
> Karsten
>
> On Wed, 27 Oct 2004 13:32:13 +0200, Reimar Bauer
> <R.Bauer@fz-juelich.de> wrote:
>
>> David Fanning wrote:
>>
>>> Reimar Bauer writes:
>>>
>>>> Did someone know a routine to show in a simple XY Plot the
>>>> distribution of colors for an image?
>>>
>>> I think that is called a histogram, Reimar. :-)
>>> Cheers,
>>> David
>>>
>>
>>
>> fine, I have seen a lot of instruction on your marvellous web page.
>>
>> But I don't understand the result I got. Lets show an example.
>>
>> a=dist(20)
>> h=histogram(a)
>> print,max(a),max(h)
>> 14.1421 56
>>
>>
>> u=uniq(a,sort(a))
>> help,u,h
>> U LONG = Array[61]
>> H LONG = Array[15]
>>
>> Why could be h higher as a?
>> Why doesn't I got a vector length of 61 as uniq tells?
>>
>>
>> More and more I believe the first question does not describe what I
>> want. .
>>
>>
>> Reimar
>>
>>
>>
>
>
>


--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL 6.1 EPS error
Next Topic: CSMI of a region

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

Current Time: Fri Oct 10 23:05:20 PDT 2025

Total time taken to generate the page: 1.35861 seconds