Re: rgb -> hsv and back

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:
> Hey,
> 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.
> s
> 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
> >
> > 
> _______________________________________________
> F-spot-list mailing list
> F-spot-list gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]