[Gimp-user] Call Auto White Balance example needed...

2009-01-12 Thread Durumdara
Hi!
If I saw good, the Automatic White Balance function uses
gimp-color-balance.

But I don't know, how to parameterize to get same effect that the GIMP do
when I clicking to the Menu.

Or is it not a constant value (it is recalculated by GIMP before function
calling)?

Please help me, I need only this to finish my script totally.

If it is not possible because of dynamic parameters, I need to use XNView:
but I don't know, which function similar...

Thanks for it:
dd
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Call Auto White Balance example needed...

2009-01-12 Thread saulgoode
Quoting Durumdara durumd...@gmail.com:

 If I saw good, the Automatic White Balance function uses
 gimp-color-balance.

GIMP's Auto White Balance menu command performs the same operation as  
clicking on the AUTO button in the Colors-Levels dialog. It sets  
the black point (lower threshold) and white point (the upper  
threshold) of each of the red, green, and blue channels (separately)  
based on that channel's histogram.

 But I don't know, how to parameterize to get same effect that the GIMP do
 when I clicking to the Menu.

Use the PDB function 'gimp-levels-stretch'. To my knowledge, it is  
precisely equivalent to the menu's Auto White Balance function.




___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user