Ask Your Question
-1

seamlessClone invoke causes compilation error

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

squenix008 gravatar image

Hi

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

Comments

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

berak gravatar imageberak ( 2020-09-21 11:39:56 -0600 )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 -0600 )edit

Ok Ok if you prefer it like that,

Here

//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 -0600 )edit

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

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

1 answer

Sort by ยป oldest newest most voted
0

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

squenix008 gravatar image

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

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

Question Tools

1 follower

Stats

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

Seen: 330 times

Last updated: Sep 21 '20