Gimp-Forum.net
Skintone adjustment with samplepoints script ? (@ofnuts) - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+--- Thread: Skintone adjustment with samplepoints script ? (@ofnuts) (/Thread-Skintone-adjustment-with-samplepoints-script-ofnuts)



Skintone adjustment with samplepoints script ? (@ofnuts) - Espermaschine - 06-13-2018

Yesterday i tried a faceswap on a couple with G'MIC Blend [seamless]

They were both in the same image, but one was asian and the other caucasian.

I used Pat David's tutorial for adjusting skintones with Samplepoint and Curves but it was (again) really difficult and time consuming without good results.

So i was wondering (because ofnut's once said that it would be easy to script):

any chance we get a script, please ?   Smile


https://patdavid.net/2012/07/getting-around-in-gimp-more-color.html


RE: Skintone adjustment with samplepoints script ? (@ofnuts) - rich2005 - 06-13-2018

@Espermaschine Apologies nothing to do with your request. Just for a bit of fun.

In Gimp 2.10 there is a (flaky) experimental tool "seamless clone" To enable this in Gimp 2.10.2 run Gimp with the switch --show-playground In Edit -> Preferences there is a menu section, Playground with the tool.

That will take a selection and (try to) blend in taking the background into consideration, all the time trying not to crash Wink

Right hand side face grafted into center. The little box is just a repeat to show what gets moved around.

[Image: 1zu21gx.jpg]

And that came from this original: https://i.imgur.com/tfvqV3A.jpg
with this adjustment for angle before making a selection: https://i.imgur.com/oaUxLA0.jpg


RE: Skintone adjustment with samplepoints script ? (@ofnuts) - Espermaschine - 06-13-2018

(06-13-2018, 04:10 PM)rich2005 Wrote: @Espermaschine Apologies nothing to do with your request. Just for a bit of fun.

No worries, this forum is dearly in need of more fun.

Im still working with 2.8, but i guess these ladies have very similar skintones anyway ?


RE: Skintone adjustment with samplepoints script ? (@ofnuts) - Ofnuts - 06-13-2018

(06-13-2018, 03:07 PM)Espermaschine Wrote: Yesterday i tried a faceswap on a couple with G'MIC Blend [seamless]

They were both in the same image, but one was asian and the other caucasian.

I used Pat David's tutorial for adjusting skintones with Samplepoint and Curves but it was (again) really difficult and time consuming without good results.

So i was wondering (because ofnut's once said that it would be easy to script):

any chance we get a script, please ?   Smile


https://patdavid.net/2012/07/getting-around-in-gimp-more-color.html

Lemme think about it (for a start, there is no way to access sample points from scriptsSmile)


RE: Skintone adjustment with samplepoints script ? (@ofnuts) - Espermaschine - 06-13-2018

(06-13-2018, 07:40 PM)Ofnuts Wrote: Lemme think about it (for a start, there is no way to access sample points from scriptsSmile)

Yeh, i was expecting that you would probably have to set the Value points manually, but maybe the curve adjustments could be automated.


RE: Skintone adjustment with samplepoints script ? (@ofnuts) - Ofnuts - 06-13-2018

Thinking about something like two paths, one that marks points on the source, one with an equal number of points on the target, and the curves are set so that if applied to the target layer, the points assume the same color as their counterpart on the the source.


RE: Skintone adjustment with samplepoints script ? (@ofnuts) - Kevin - 06-13-2018

(06-13-2018, 07:40 PM)Ofnuts Wrote: Lemme think about it (for a start, there is no way to access sample points from scriptsSmile)

That used to be the case, but it is now possible to set/get the sample points from scripts:
Code:
gimp-image-add-sample-point
gimp-image-delete-sample-point
gimp-image-find-next-sample-point
gimp-image-get-sample-point-position



RE: Skintone adjustment with samplepoints script ? (@ofnuts) - Ofnuts - 06-14-2018

OK, so the API fairy strikes again Smile