eomer
eomer

Reputation: 3574

openCV combining an image to another image on given coordinates

i wrote a face & eye detection code next step is put an image to the coordinates of the detected eye (for ex: eye patch, eye glasses) i couldn't find the function to combine the source frame and the image I want to add

any suggestions

thanks

Upvotes: 3

Views: 7670

Answers (1)

f3lix
f3lix

Reputation: 29879

You can use cvCopy with a mask to do this. If the the images do not have the same height and width set the ROI of the destination image before using cvCopy.

See OpenCV documentation:

Upvotes: 4

Related Questions