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
 about decoding with python opencv
 about batch change of file name using python
 python  about write loop to csv
 about python argument and data definition
 python 3x  about downloading anaconda
 python  about the optimum angle of rotation matrix
 python  about downloading youtube videos by youtubedl
 about processing to exclude the character string group specified from list in python
 python  what i don't understand about yolo9000 (v2)
 about the python speedtest code
 python, about the fire spread step of forest fire simulation
 about the implementation of combinations in python
 please tell me about the role of python tag = "mychr"
 about python def issues
 python 3x  i want to get a matrix with the values of a certain column removed for each row of the matrix with pytorch (speedu
 opengl  about 4 * 4 matrix calculation
 about the operation of python's speedtest module (library)
 pythonista  [python] questions about line splitting in dataframe
 python  about hamiltonian neural networks
 python  about "" "of" "" select === = "" "
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.