11-16-2024, 08:17 PM
Thanks for replies, I looked at the source code of gimp 2.10, and I quickly wrote a modification, in order to get it working.
I took the source code of gimp-drawable-hue-saturation as a base, and used babl library to switch between RGB and HCL.
With the same parameters, my implementation gives an image that is very close to the one manually created with gimp user interface. But the two images are not identical. I have compared them with Imagemagick tool "compare".
However, the images given by my implementation seem to be usable.
I think I will have to compare with other software tools and libraries to know what is the best option.
I took the source code of gimp-drawable-hue-saturation as a base, and used babl library to switch between RGB and HCL.
With the same parameters, my implementation gives an image that is very close to the one manually created with gimp user interface. But the two images are not identical. I have compared them with Imagemagick tool "compare".
However, the images given by my implementation seem to be usable.
I think I will have to compare with other software tools and libraries to know what is the best option.