Cropping 2 Pictures and adding them

asked 2018-05-01 08:23:21 -0500

KaanCidar gravatar image

updated 2018-12-10 09:29:21 -0500

Imagine 2 images taken on the same background. first a person is on the left side of the picture and on the second picture he is on the right side. I want to combine these two images to achieve complete background of the image. Is there a way I can achieve this? Both pictures have same resolution.

edit retag flag offensive close merge delete

Comments

" I want to combine these two images to achieve complete background of the image" -- sorry, that's still unclear. try again ?

do you just want to blend them ? maybe cv::addWeighted() ?

berak gravatar imageberak ( 2018-05-01 08:52:49 -0500 )edit
2

please show example images, and the code, you tried with, so far.

berak gravatar imageberak ( 2018-05-01 10:08:41 -0500 )edit

Have a look at using masks.

Der Luftmensch gravatar imageDer Luftmensch ( 2018-05-01 14:00:29 -0500 )edit