Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Texture projection, compute UV coordinates

Hi everybody, I’m trying to project an image to the plane. I was using this approach [from opencv](http://docs.opencv.org/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html#void%20reprojectImageTo3D(InputArray%20disparity,%20OutputArray%20_3dImage,%20InputArray%20Q,%20bool%20handleMissingValues,%20int%20ddepth) and also read this post. The question is how do I get a UV coordinates for the image.

Here is my scenario: plane 16x12 ( blue) and image with the translation at 0,4,0 (red cross) and the rotation matrix ( 100 010 001 )

image description

I was using this, but I get really wrong UV coordinates i was using this formulas [from opencv](http://docs.opencv.org/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html#void%20reprojectImageTo3D(InputArray%20disparity,%20OutputArray%20_3dImage,%20InputArray%20Q,%20bool%20handleMissingValues,%20int%20ddepth) article:

image description

Result for example for the point ( -8, 0 , -6 ) -> (1.33, -0.66) and i expect it to be -> (0,0)

Do you have any ideas, what i do wrong and how it should be done?

Thanks!!!

Texture projection, compute UV coordinates

Hi everybody, I’m trying to project an image to the plane. I was using this approach [from opencv](http://docs.opencv.org/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html#void%20reprojectImageTo3D(InputArray%20disparity,%20OutputArray%20_3dImage,%20InputArray%20Q,%20bool%20handleMissingValues,%20int%20ddepth) and also read this post. The question is how do I get a UV coordinates for the image.

Here is my scenario: plane 16x12 ( blue) and image with the translation at 0,4,0 (red cross) and the rotation matrix ( 100 010 001 )

image description

I was using this, but I get really wrong UV coordinates i was using this formulas [from opencv](http://docs.opencv.org/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html#void%20reprojectImageTo3D(InputArray%20disparity,%20OutputArray%20_3dImage,%20InputArray%20Q,%20bool%20handleMissingValues,%20int%20ddepth) article:

image description

Result for example for the point ( -8, 0 , -6 ) -> (1.33, -0.66) and i expect it to be -> (0,0)

Do you have any ideas, what i I do wrong and how it should be done?

Thanks!!! Thanks!

Texture projection, compute UV coordinates

Hi everybody, I’m trying to project an image to the plane. I was using this approach [from opencv](http://docs.opencv.org/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html#void%20reprojectImageTo3D(InputArray%20disparity,%20OutputArray%20_3dImage,%20InputArray%20Q,%20bool%20handleMissingValues,%20int%20ddepth) and also read this post. The question is how do I get a UV coordinates for the image.

Here is my scenario: plane 16x12 ( blue) and image with the translation at 0,4,0 (red cross) and the rotation matrix ( 100 010 001 )

image description

I was using this, but I get really wrong UV coordinates i was using this formulas [from opencv](http://docs.opencv.org/modules/calib3d/doc/camera_calibration_and_3d_reconstruction.html#void%20reprojectImageTo3D(InputArray%20disparity,%20OutputArray%20_3dImage,%20InputArray%20Q,%20bool%20handleMissingValues,%20int%20ddepth) article:

image description

Result for example for the point ( -8, 0 , -6 ) -> (1.33, -0.66) and i expect it to be -> (0,0)

Do you have any ideas, what I do wrong and how it should be done?

Thanks!