I am using Photoscan 1.1.4 64bit for windows.

I need to import the 3d model computed by photoscan into matlab. The model has been computed using pre-calibrated fix parameters.

I exported the model as an .obj file and the extrinsic parameters either in the format phi kappa omega .txt OR photoscan .xml. The extrinsic parameters in this two models differ by a rotation matrix, for instance, the rotation matrix exported in the .xml file is the R matrix of the .txt file rotated by 180° around the x axis.

Moreover, I get a "correct" reprojection of the points only when I use the phi kappa omega .txt file to obtain the parameters, and I multiply the x coordinate of the translation vector by -1 and invert the x-axis on the frame i.e. u = width - u. Or, in other words, when I multiply the x coordinate of the translation vector and the x focal length by -1.

To reproject the 3D-points I followed the schema reported in the manual and I even tried to apply the function developed into the calibration toolbox from Caltech. The reprojection using these two methods are identical, but they are correct only when I apply that sort of patch.

EDIT: I checked with another model exported from the same set of photos and configuration, this time neither that patch works... This model is smaller and it is not centered in the z axis as the previous one.

Thank you in advance.