MATLAB: Question about regionprops3 ‘Orientation’ angles / origin

3d image processingeigenvalueseigenvectorsImage Processing Toolboxorientationregionpropsregionprops3

I want to find out the spatial orientation of an object in a 3D image stack. For this, I am using regionprops3 of the Image Processing Toolbox. However the "order" of x-y-z angles confuses me, as the description sais "The angles are based on the right-hand rule. regionprops3 interprets the angles by looking at the origin along the x-, y-, and z-axis representing roll, pitch, and yaw respectively." Does this mean, the origin is at the lower front right corner of my image stack?
So my question is, can someone please help me translate the x-y-z angles into my image stack coordinate system, where the origin is at the top-left corner, y/rows goes down, x/columns to the right and z/pages "towards you"? As far as I figured, the "x" angle of regionprops seems to refer to what's my "Z"? Thanks a lot.

Best Answer

It is probably easier to use the EigenValues/EigenVectors property to determine 3D orientation. See this similar thread.