Home>
I am trying to find the Euler angle from the rotation matrix using OpenCV in python.
I am trying to get Euler angle using decomposeProjectionMatrix (),
I need a rotation matrix that is a 3x3 matrix, but I don't know how to extend it to a 3x4 matrix.
double * _r = rotCamerMatrix.ptr
double projMatrix [12] = {_r [0], _ r [1], _ r [2], 0, _r [3], _ r [4], _ r [5], 0, _r [6], _ r [7] , _r [8], 0};
projMat = cv :: Mat (3,4, CV_64FC1, projMatrix);
C ++ looks like this, but I don't know how to implement it in python.
Thanks for your professor.
Reference URL (FW/tool version etc.)Reference : https://qiita.com/TaroYamada/items/e3f3d0ea4ecc0a832fac

Answer # 1
Related articles
 python  about scikitlearnrandomforestregessor
 about scraping in python
 about the problem that python fails to determine the exact match of a string
 python  about session management of flask login
 about byte processing clipping in python
 about local variable references in python
 python  about the difference in behavior between sort and sorted
 about wxpython
 about the cause of syntax error: invalid syntax in python
 python  about the problem that the screen display does not work when i have multiple apps in django
 python  about the target method when nothing is returned for the query of table
 python  about pulp shift scheduling
 python  i want to use opencv on raspberry pi
 [python] assigning a column vector to a matrix
 python 3x  about text box input
 opencv not available in python attributeerror:
 about python highpass filter
 about the display of the contents of the matrix
 python  i want to calculate matrix calculation with numpy for statement with numpydot
 [python] i want to calculate an excel matrix with a for statement
Related questions
 python  i got an error in opencv
 i want to communicate two pcs with python tcp/ip communication
 python  opencv circle center color
 python  how to narrow down the face recognition target
 optimal description of python def function
 [python 390 idle] idle cannot be started
 python  i want to implement scrolled text in tkinter
 the calculation result of python print (1/2) becomes 0
 python  unable to create an instance using boto3 in vscode
 python  if you create multiple signup screens with django, you want to change the redirect destination in case of an error
I think that it is better to use the numpy.insert function for matrix expansion.
This article is helpful.
How to use insert to insert/add elements/rows/columns to NumPy array ndarray
I hope you find it helpful.