Paste multiple images next to each other as a single image, for saving or displaying. Remember to free the returned image. Sample usage: cvSaveImage("out.png", combineImages(2, img1, img2) ); Modified by Shervin from the cvShowManyImages() function on the OpenCVWiki by Parameswaran. 'combineImagesResized()' will resize all images to 300x300, whereas 'combineImages()' doesn't resize the images at a