Friday, February 18, 2011

adding two images in OpenCV

Hi Guys, in this post we look at how to add two images and display them in a single image (adding images vertically).


Btw, My other programs in OpenCV will be posted here

  1. Basically we need to set the ROI of resultant image to size of first image and copy the entire image using cvCopy.
  2. Next, we set the ROI of resultant image to end of the resultant image and copy the second image to the end of the resulant image.
  3. Save image and Show Image.
//the code has been included with comments and they are self-explanatory.



No comments:

Post a Comment