I'm trying to use OpenCV to find the orientation/pose of a calibration checkerboard in a photo, so I'm using the solvePnPRansac function. I want to extract the board's axis system's orientation relative to the world system (ie. the angle between the board's x-axis and the world's X-axis). For this I was thinking of simply getting the Euler-angles out from the rotation matrix given by the solvePnPRansac/Rodrigues functions.
My question now is which notation convention does OpenCV's rotation matrix use? The 'x y z' notation or the 'x' notation (ie rotation around the z, x then the z axis again). I can't find this spec in the documentation and I need this information to know which equations to use to decompose the matrix into the proper Euler angles