Ask Your Question
0

copying to images side by side to create a wider image

asked 2013-11-23 17:28:20 -0600

synthnassizer gravatar image

hi all, I am trying to get frames from 2 kinect devices and merge them to a unified wider image.

so basically I need to get the 2x 640x480 frames (images) and place them in another image of resolution 1280x480..

As I am very new to opencv I am not sure what search terms to use to find even a remotely relevant result.. I tried setting the ROI of the left half of the image, assign pixel values to the ROI, then setting the right part as the ROI and setting the other frame into this region. In the end I draw the 1280x480 wide image, but I only see the frame data that I assigned last to the wide image..

what am I doing wrong? What is the proper way to do it?

thank you

edit retag flag offensive close merge delete

Comments

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-11-23 20:04:05 -0600

zulfiqar gravatar image

updated 2013-11-23 20:05:36 -0600

I am usin this code to make a single image by joining multiple images

 IplImage* dst=cvCreateImage(cvSize(dstWidth,dstHeight),IPL_DEPTH_8U,3); 
 cvSetImageROI(dst,cvRect(i*bgr_frame->width,j*bgr_frame->height,
 bgr_frame->width,bgr_frame->height));

 cvCopy(bgr_frame,dst,NULL);
 cvResetImageROI(dst);
edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-11-23 17:28:20 -0600

Seen: 3,121 times

Last updated: Nov 23 '13