# Revision history [back]

### OpenCV Decompose projection matrix

0

I got confused with the outputs of opencv decomposeProjectionMatrix function.

I have the projection matrix and the camera matrix "K" and I want to get the translation vector "t"and the Rotation matrix "R" from the projection matrix

As I know the projection matrix of dimension 34 = K[R|t] in which "t" is a 31 vector

cv2.decomposeProjectionMatrix returns R with dimension 33 which is correct but the transVect returned is of dimension 41 not 3*1

My question is how to get back the projection matrix from the function outputs?

 2 None supra56 943 ●9 ●6

### OpenCV Decompose projection matrix

0

I got confused with the outputs of opencv decomposeProjectionMatrix decomposeProjectionMatrix function.

I have the projection matrix and the camera matrix "K" and I want to get the translation vector "t"and the Rotation matrix "R" from the projection matrix

As I know the projection matrix of dimension 34 = K[R|t] in which "t" is a 31 vector

cv2.decomposeProjectionMatrix cv2.decomposeProjectionMatrix returns R with dimension 33 which is correct but the transVect returned is of dimension 41 not 3*1

My question is how to get back the projection matrix from the function outputs?

### OpenCV Decompose projection matrix

0

I got confused with the outputs of opencv decomposeProjectionMatrix function.

I have the projection matrix and the camera matrix "K" and I want to get the translation vector "t"and the Rotation matrix "R" from the projection matrix

As I know the projection matrix of dimension 34 = K[R|t] in which "t" is a 31 vector

cv2.decomposeProjectionMatrix returns R with dimension 33 which is correct but the transVect returned is of dimension 41 not 3*1

My question is how to get back the projection matrix from the function outputs?

### OpenCV Decompose projection matrix

0

I got confused with the outputs of opencv decomposeProjectionMatrix function.

I have the projection matrix and the camera matrix "K" and I want to get the translation vector "t"and the Rotation matrix "R" from the projection matrix

As I know the projection matrix of dimension 34 = K[R|t] in which "t" is a 31 vector

cv2.decomposeProjectionMatrix returns R with dimension 33 which is correct but the transVect returned is of dimension 41 not 3*1

My question is how to get back the projection matrix from the function outputs?