Image 3D rotation OpenCV

后端 未结 1 1035
隐瞒了意图╮
隐瞒了意图╮ 2021-01-16 00:45

I need to perform a 3D rotation of a 2D image on x and y axis. I read that i have to use the Homographic matrix on OpenCV , but i don\'t know how to set the matrix to perfor

相关标签:
1条回答
  • 2021-01-16 01:03

    Follow that same post, but replace your rotation matrix. Familiarize yourself with the Rorigues() function. You can send it a 1 x 3 array of the x, y, and z rotations. It will give you a a 3 x 3 rotation matrix. Plug this matrix in as the first 3 columns and 3 rows of R (leave the rest the same). If you don't want any translation, make sure you set the variable dist to 0 in the code on that page.

    0 讨论(0)
提交回复
热议问题