Ask Your Question

seamlessClone invoke causes compilation error

asked 2020-09-21 10:47:37 -0500

squenix008 gravatar image


I cant compile code due to the shown line

image description

i've check the variable types passed to the function and they seem all right. What am I missing ?

Best regards

edit retag flag offensive close merge delete


please, replace the useless screenshot with a TEXT version of your code / errors, thank you !

berak gravatar imageberak ( 2020-09-21 11:39:56 -0500 )edit

and no, this is not a compilation, but a linker error.

What am I missing ?

basic c++ skills, google fu

berak gravatar imageberak ( 2020-09-21 11:43:19 -0500 )edit

Ok Ok if you prefer it like that,


//seamlessClone(NULL, NULL, NULL, center, output, NORMAL_CLONE); seamlessClone(img1Warped,img2, mask, center, output, NORMAL_CLONE); imshow("Face_Swapped", output);

For the declarations:

Mat img1Warped, img2,mask,output; Point center;

Sorry if i ask obvious questions but I come from the java world.

Best regards

squenix008 gravatar imagesquenix008 ( 2020-09-21 11:53:46 -0500 )edit

do you realize, that your question is entirely useless without the image ?

berak gravatar imageberak ( 2020-09-21 12:41:26 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2020-09-21 13:23:13 -0500

squenix008 gravatar image

updated 2020-09-21 13:23:34 -0500

Don't you worry, I found out i was missing a few libraries here and there, adding them solved the problem. But still being used to java straight forwardness never helped.

Best regards.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-09-21 10:47:37 -0500

Seen: 20 times

Last updated: Sep 21