The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: xPLRioNet - A Challenge


  • Subject: Re: xPLRioNet - A Challenge
  • From: "Keith Doxey" <ukha@xxxxxxxxxxx>
  • Date: Fri, 21 Jan 2005 22:56:52 -0000



--- In ukha_xpl@xxxxxxx, "Tony Tofts" <tony@x> wrote:

> I'm currently taking a pass thru the bitmap, taking an average of
the RGB
> per pixel, and then an overall average.
>
> Then when rendering if the total of rgb < than the average it's
black, else
> it's white.
>
> But I think it could be a lot better. I believe you have to do
stuff like
> giving each RGB part a different weighting?
>
> So the challenge is... Can someone find a (not too complicated)
formula to
> give a decent image please?
>

Hi Tony,

Most of the brightness of a picture is in the GREEN component.

PaintShopPro gives 4 options when reducing to two colours allowing
you to select between Grey/Red/Green/Blue component of the original
image.

I tried this and you can see the results at
http://www.diyha.co.uk/xpl/index.html

Regards

Keith





xPL Links: http://www.xplproject.org.uk http://www.xplhal.com http://www.xpl.myby.co.uk
To Post a Message: ukha_xpl@xxxxxxx
To Subscribe:  ukha_xpl-subscribe@xxxxxxx
To Unsubscribe:  ukha_xpl-unsubscribe@xxxxxxx

xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.