Hello Julien,
In PhotoScan the following convention is used:
Yaw is a counterclockwise rotation around Z axis
Pitch is a clockwise rotation around X axis
Roll is a clockwise rotation around Y axis
R = Rz(-yaw) * Rx(pitch) * Ry(roll)
It comes to an accordance with the Wikipedia definition (
https://en.wikipedia.org/wiki/Aircraft_principal_axes) in case the coordinate system related to the aircraft is defined in the following way:
Z axis pointing upwards,
X axis pointing to the right (to the right wing) ,
Y axis pointing forward (to the aircraft nose) .
camera.transform defines the conversion from the system related to the camera to the internal chunk's system. Also it can be said that this matrix defines the location of the camera center and camera orientation angle in the internal chunk's system.
chunk.transform.matrix performs the conversion from the internal chunk's system to geocentric coordinate system (if the chunk is georeferneced). In case the chunk is referenced in the local coordinates, then chunk.transform.matrix converts the coordinates to this particular local system directly.
As for the region parameters (region.rot, region.center and region.size) they define the orientation of the bounding box (as 3x3 matrix), box center and size of the box (as 3-component vector). All the values are in the internal chunk's system.