1 | initial version |
that won't work in rgb!
you want all light / shadow effects on the body to stay as they are.
i'd convert both images to hsv first, then swap only the hue component.
(or, make a histogram of src-hue only, and take the most prominent value there)