How to determine which pixel from which image was used during panorama creation / how to create panorama from four-channel images?

asked 2017-04-29 12:02:17 -0500

seaxgast gravatar image

Dear OpenCV users,

I'm playing around with image stitching pipeline and panorama creation using OpenCV3.2. I'm using Kinect RGB camera as image source, additionaly I retrieve depth values from Kinect's sensor. My code is very similar to the example code that can be found in OpenCV documentation. I convert RGB images captured from Kinect to matrix with BGR format and I'm able to create the panorama from a set of BGR images easily.

Howewer, my goal is to create panoramas from four-channels image (BGR and one extra channel, which I want to use for storing depth values for each pixel) - panorama should be created using BGR values and in fourth channel I'd like to store depth values that would come from source images. Unfortunately, OpenCV does not allow me to use four-channel images. Is there any way to bypass this limitation? If not, I would be glad to know how to determine, for each panorama pixel which pixel from which image was used during panorama creation>

Thank you!

edit retag flag offensive close merge delete


pls attach few images with depth data, i look into.thanks

Patan Amjad Khan gravatar imagePatan Amjad Khan ( 2017-04-29 18:58:10 -0500 )edit

How did you solve the problem?

jsxyhelu gravatar imagejsxyhelu ( 2017-05-01 07:41:07 -0500 )edit

You have to dig in the code

LBerger gravatar imageLBerger ( 2017-05-01 11:51:08 -0500 )edit