🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.image.processing
Article #975

Re: Sorting RGB Palette in Intensity Order. Please Help !

#975
From: Pigeon Steven
Date: Sun, 10 Jan 1993 03:46
33 lines
1700 bytes
In article <1993Jan9.134848.7175@mcclb0.med.nyu.edu> smith@mcclb0.med.nyu.edu writes:
>> I would like to sort an array of RGB Palette in intensity order,
>> but do not know how.  Does anybody please help ?
>> 
>I sort first by min(r,g,b), then by saturation and then intensity.  The goal 
>(I assume) is to get a sorted set of indices that displays reasonably as B&W. 
>Intensity=(r+g+b)/3.
>
>+----------------------------------------------------------------------------+
>|Ross Smith,  Research Computing Resource, Department of Cell Biology, NYU-MC|
>|E-Mail:  SMITH@NYUMED.BITNET (BITNET),   SMITH@MCCLB0.MED.NYU.EDU (Internet)|
>+----------------------------------------------------------------------------+


NOT! >Intensity=(r+g+b)/3.

The actual Intensity value is:


 Intensity:=(r*0.299)+(g*0.587)+(b*0.114)

giving intensity as [0..1]. These are to a few decimal, but more precise
coeff. are hard to find.

	Regards,
		S.


-- 
------------------------------------------------------------
 STEVEN PIGEON, a.k.a pigeons@jsp.umontral.ca, planet Earth.
==Departement d'informatique et de Recherche Operationnelle=
              == Universite de Montreal==
Technical Details
Message-ID: <1993Jan10.034607.26313@cc.umontreal.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!charnel!sifon!CC.UMontreal.CA!pigeons
References: <1ie20sINNe78@charnel.ecst.csuchico.edu> <1993Jan9.134848.7175@mcclb0.med.nyu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!charnel!sifon!CC.UMontreal.CA!pigeons
From: pigeons@JSP.UMontreal.CA (Pigeon Steven)
Newsgroups: sci.image.processing
Subject: Re: Sorting RGB Palette in Intensity Order.  Please Help !
Message-ID: <1993Jan10.034607.26313@cc.umontreal.ca>
Date: 10 Jan 93 03:46:07 GMT
References: <1ie20sINNe78@charnel.ecst.csuchico.edu> <1993Jan9.134848.7175@mcclb0.med.nyu.edu>
Sender: news@cc.umontreal.ca (Administration de Cnews)
Organization: Universite de Montreal
Lines: 33