Re: rgb -> hsv and back
- From: Larry Ewing <lewing novell com>
- To: Stephane Delcroix <stephane delcroix org>
- Cc: f-spot-list gnome org
- Subject: Re: rgb -> hsv and back
- Date: Mon, 14 Apr 2008 10:58:53 -0500
The interactive color adjustment dialog does a lot of this sort of
transform but it does it via an adjustment profile that it creates on
the fly. It may be hard to follow the code because we use lcms and the
actual image color profile to convert to luminance space, adjust, then
convert back again in single pass. That code could be adapted to convert
to a colorspace of your choosing which could then be used collect the
statistics you want to create an adjustment back to rgb.
If you would like try that direction I can help walk you through the
darker corners of the code. Otherwise as Stephane points our there
isn't much existing infrastructure to help you out at the moment.
On Mon, 2008-04-14 at 14:37 +0200, Stephane Delcroix wrote:
> 1. no, there's no doc but the code itself...
> 2. AFAIK, (Gdk)pixbuf doesn't support HSV. so "converting a RGB pixbuf
> to HSV" doesn't make a lot of sense
> so, you'll probably have to do the RGB->HSV conversion (and back)
> yourself, but you might find some converter already available on the
> web. My .02€ tip: don't do that in managed code, it'll be way too slow.
> On Sun, 2008-04-13 at 19:59 +0200, Georg Leugner wrote:
> > Hallo,
> > I'm currently coding on the one click contrast filter like picassa has.
> > But I need some information:
> > 1. First and most important. Is there somewhere hidden more
> > documentation than on the get involved page?
> > 2. I need to convert a RGB pixbuf to HSV. I couldn't find a method which
> > does that, but i found some methods using hue, saturation... Do I miss
> > something?
> > Kind regards,
> > georg
> > _______________________________________________
> > F-spot-list mailing list
> > F-spot-list gnome org
> > http://mail.gnome.org/mailman/listinfo/f-spot-list
> F-spot-list mailing list
> F-spot-list gnome org
] [Thread Prev