<ol>
<li><p>Move the child down slightly so the right foot is behind the shoulder.</p></li>
<li><p>Reduce their size almost 50%.</p></li>
<li><p>Blend only the outline of the child with the background, at most a few pixels.</p></li>
<li><p>The men appear to be standing straight while the child appears to be leaned forward slightly - rotate the top of the inserted image backwards ~5°.</p></li>
<li><p>Reduce the brightness of the child slightly.</p></li>
</ol>

<p>Doing the above should result in a realistic result.</p>

CC BY-SA 4.0
2018-09-18T15:44:00.640Z
2018-09-18T15:44:00.640Z
Rob
<p>I want to put a segment of an image to another image. But to make it realistic I applied poisson blending. But the output is not good at all. </p>

<p>Output without poisson blending. The kid was cropped from another image.</p>

<p><a href="https://i.sstatic.net/0WYFo.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/0WYFo.jpg" alt="enter image description here"></a></p>

<p>With poisson blending</p>

<p><a href="https://i.sstatic.net/gIWRY.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/gIWRY.jpg" alt="enter image description here"></a></p>

<p>I have no clue what else to try. I though of calculating average value of the image segment where the kid is placed and then scaling the kids color to that average. But it should not work properly if that image segment is very white or black etc.</p>

CC BY-SA 4.0
2018-08-29T13:08:52.213Z
What you need is probably something along the lines of color grading (tone mapping) rather than blending. Since you wrote the question terms of CG, I won't downvote it, but imho the issue is one of "using" image manipulation software and thus doesn't belong here. I suggest you look into the partner stack exchange websites: https://photo.stackexchange.com/ and https://graphicdesign.stackexchange.com/
Tare
CC BY-SA 4.0
2018-08-29T13:36:15.183Z
I need to do it programmatically. So using tools is not an option.
Tahlil
CC BY-SA 4.0
2018-08-29T14:15:11.337Z
What exactly were you hoping to achieve by using Poission blending?
Dan Hulme
CC BY-SA 4.0
2018-08-30T18:01:02.587Z
Could you give an example of your intended result? Either an image or a description of what would be different?
trichoplax is on Codidact now
CC BY-SA 4.0
2018-08-31T03:04:55.260Z
Sorry I don't have the image for intended output. The cropped image segment looks artificial in that image. Because in this case the kid image is brighter and sharper than the destination image. That's why it doesn't look natural.
Tahlil
<image-processing><color><blending>
How to blend a segment of an image with another image
Tahlil
# How to blend a segment of an image with another image

(Asked by: username_0 on 2018-08-29)

I want to put a segment of an image to another image. But to make it realistic I applied poisson blending. But the output is not good at all.

Output without poisson blending. The kid was cropped from another image.

[![enter image description here](https://i.sstatic.net/0WYFo.jpg)](https://i.sstatic.net/0WYFo.jpg)

With poisson blending

[![enter image description here](https://i.sstatic.net/gIWRY.jpg)](https://i.sstatic.net/gIWRY.jpg)

I have no clue what else to try. I though of calculating average value of the image segment where the kid is placed and then scaling the kids color to that average. But it should not work properly if that image segment is very white or black etc.

**Tags:** image-processing, color, blending

> **Comments:**
> **username_1**: What you need is probably something along the lines of color grading (tone mapping) rather than blending. Since you wrote the question terms of CG, I won't downvote it, but imho the issue is one of "using" image manipulation software and thus doesn't belong here. I suggest you look into the partner stack exchange websites: https://photo.stackexchange.com/ and https://graphicdesign.stackexchange.com/  
> **username_0**: I need to do it programmatically. So using tools is not an option.  
> **username_2**: What exactly were you hoping to achieve by using Poission blending?  
> **username_3**: Could you give an example of your intended result? Either an image or a description of what would be different?  
> **username_0**: Sorry I don't have the image for intended output. The cropped image segment looks artificial in that image. Because in this case the kid image is brighter and sharper than the destination image. That's why it doesn't look natural.  

---

## 1 answers

### Answer by username_4 on 2018-09-18. Score: 1

1. Move the child down slightly so the right foot is behind the shoulder.
2. Reduce their size almost 50%.
3. Blend only the outline of the child with the background, at most a few pixels.
4. The men appear to be standing straight while the child appears to be leaned forward slightly - rotate the top of the inserted image backwards ~5°.
5. Reduce the brightness of the child slightly.

Doing the above should result in a realistic result.


---

