Re: distribution of colors for an image [message #41493 is a reply to message #41366] |
Wed, 27 October 2004 06:37  |
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
============================================================ =======
|
|
|