Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Skintone adjustment with samplepoints script ? (@ofnuts)
#1
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-aro...color.html
Reply
#2
@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
Reply
#3
(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 ?
Reply
#4
(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-aro...color.html

Lemme think about it (for a start, there is no way to access sample points from scriptsSmile)
Reply
#5
(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.
Reply
#6
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.
Reply
#7
(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
Reply
#8
OK, so the API fairy strikes again Smile
Reply


Forum Jump: