Hello, I am working on rotation matrix in OpenCV. I need to use it for OpenGL. Do I need to transpose the matrix in OpenCV in order to use for OpenGL? Does this matter for rotation matrix. Please clarify my question. Thanks.
OpenGL and OpenCV matrix
Members - Reputation: 722
Posted 05 March 2014 - 09:36 PM
I'm guessing you're not a native english speaker..
Your question is a bit unclear. Please elaborate on exactly what you're trying to do, with some relevant code pasted.
Haven't used OpenCV myself, but basically this will boil down to inspecting and understanding the data.
Basically, print out the literal values from OpenCV to see with your own eyes... Then compare them to how a GL rotation matrix is constructed.
Then either transpose it, shift around the values appropriately, or reconstruct it entirely.
Members - Reputation: 275
Posted 06 March 2014 - 02:27 AM
Didn't even know what OpenCV was until now. These googled example references may help you perform what has been suggested (i.e. The kind of things that would result from suggestions like the one from 3TATUK2):
Edited by steven katic, 06 March 2014 - 02:34 AM.