Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #3878

Re: RGB vs HSV

Path csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!news.snarked.org!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail
From Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand>
Newsgroups comp.lang.java.programmer
Subject Re: RGB vs HSV
Followup-To comp.lang.java.programmer
Date Tue, 10 May 2011 10:16:44 +1200
Organization Geek Central
Lines 19
Message-ID <iq9p4d$7ur$1@lust.ihug.co.nz> (permalink)
References <iq7ho7$sv1$1@lust.ihug.co.nz> <iq7q5d$b2u$1@dont-email.me>
NNTP-Posting-Host 118-92-95-178.dsl.dyn.ihug.co.nz
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace lust.ihug.co.nz 1304979405 8155 118.92.95.178 (9 May 2011 22:16:45 GMT)
X-Complaints-To abuse@ihug.co.nz
NNTP-Posting-Date Mon, 9 May 2011 22:16:45 +0000 (UTC)
User-Agent KNode/4.4.7
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:3878

Followups directed to: comp.lang.java.programmer

Show key headers only | View raw


In message <iq7q5d$b2u$1@dont-email.me>,  wrote:

> On 5/8/2011 6:58 PM, Lawrence D'Oliveiro wrote:
> 
>> Wikipedia has formulas for the conversion. Or you can use code like the
>> HSVA class here
>> <https://github.com/ldo/ti5x_android/blob/master/src/GraphicsUseful.java>.
> 
> 
> I found this, the algorithm seems a bit more compact than yours.  Might
> want to give it a look:
> 
> <http://cs.haifa.ac.il/hagit/courses/ist/Lectures/Demos/ColorApplet2/t_convert.html>

In what way more compact? The RGB-to-HSV seems to involve just as many
comparisons (not counting the special case, where they return an out-of-
ange value, while I don’t), and the hue calculation is written out three
times, instead of just once. HSV-to-RGB seems to be no more simple than my
version.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

RGB vs HSV Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-09 13:58 +1200
  Re: RGB vs HSV markspace <-@.> - 2011-05-08 21:22 -0700
    Re: RGB vs HSV Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-10 10:16 +1200
  Re: RGB vs HSV "Gavino" <invalid@invalid.invalid> - 2011-05-10 20:18 +0200
    Re: RGB vs HSV Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-11 13:59 +1200
      Re: RGB vs HSV "John B. Matthews" <nospam@nospam.invalid> - 2011-05-11 00:59 -0400
        Re: RGB vs HSV Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-05-11 17:25 +1200

csiph-web