09-25-2023, 06:20 PM
I've poked around the source code but am having difficulties and am currently trying to figure out how white balance / auto levels is performed.
I think I was able to figure out gimp_operation_levels_map as the root for determining setting gamma but there is a bunch of contextual stuff I am missing.
Example: I'm thinking gimp makes a copy of the xcf representation of the image and performs an update to that. Then there is a history of steps and one can jump back to an intermediate step.
Via bimp, using some of the procedures out of pdb, i noticed that the intermediate steps are not necessarily saved and may be overwritten. For example gimp-drawable-levels (to set gamma) followed by gimp-drawable-levels-stretch wipes out the levels gamma change whereas reverse order works. And ditto for color-levels-gui.
Anyway pointing me to something high level to get around the 15 levels of indirection used in gimp would help.
Thanks
I think I was able to figure out gimp_operation_levels_map as the root for determining setting gamma but there is a bunch of contextual stuff I am missing.
Example: I'm thinking gimp makes a copy of the xcf representation of the image and performs an update to that. Then there is a history of steps and one can jump back to an intermediate step.
Via bimp, using some of the procedures out of pdb, i noticed that the intermediate steps are not necessarily saved and may be overwritten. For example gimp-drawable-levels (to set gamma) followed by gimp-drawable-levels-stretch wipes out the levels gamma change whereas reverse order works. And ditto for color-levels-gui.
Anyway pointing me to something high level to get around the 15 levels of indirection used in gimp would help.
Thanks