insert Iplimage in Iplimage (C)

asked 2015-06-30 20:03:36 -0600

reny12 gravatar image

updated 2017-12-31 07:37:02 -0600

I have a problem , how do I get a small Iplimage and putting the same over a greater area Iplimage ? In C

Iplimage small

image description

Iplimage big

image description

Iplimage result

image description

edit retag flag offensive close merge delete

Comments

the old c-api is no more maintained, and covers only ~20% of opencv's current functionality, you must use c++, and cv::Mat nowadays, not IplImages.

in c++, it would be as easy as: smallImg.copyTo(bigImg(Rect(x,y,smallImg.cols,smallImg.rows)));

berak gravatar imageberak ( 2015-07-01 00:22:48 -0600 )edit