I would like to use estimated values of camera positions and orientations defined in Photoscan (alignment + optimisation) in ERDAS Imagine Photogrammetry suite (aka LPS) , in order to digitize features in a stereoscopic environment (StereoAnalyst).
Inputs for LPS are image name (including complete path), X, Y, Z position values and omega, phi, kappa orientation values.
I tries using estimated values.
Import of XYZ is fine, but orientation doesn't work. I also tried through the export camera tool (type omega-phi-kappa), but also unsuccessfully.
I interpret roll as omega, pitch as phi and yaw as kappa (please confirm if this is correct), but the convention used for these angles seems incorrect.
I suppose all angles coming from photoscan are in degree (?) but LPS can also use gons (grades) and radians.
The convention used in LPS is the right hand rule (see
http://en.wikipedia.org/wiki/Right-hand_rule)according to this rule, if the plane is inclined on the right side, roll will be positive, etc.
A major concern is with yaw. LPS measures kappa (yaw) positive if you turn to the left direction, and negative to the right. I assume the ortgin (kappa=0) is the top of the photo (=no rotation). Is photoscan using the same convention, or a "geographic" orientation, where yaw is defined as the bearing (yaw=0 when the top of the image is towards north).
More confusing for me: in which order are these rotation applied ?
Then, I need to introduce the estimated camera calibration parameters.
Here also, LPS is quite confusing:
I need focal length (this one is easy) and x&y decentering offsets in mm, while photoscan reports these in pixels. I assume the offset is given by the difference between the actual center and the theoretical center (= Xsizs / 2). It's easy to transform by multypling the offset in pixels by the pixel size, but I'm not sure about the direction (sign) of this parameter. Could somebody confirm if [Cx-(Xresolution/2)]*pixelsize corresponds to Xoffset of principal point, as requested in LPS
And now, the cherry on the cake:
I need "extended parameters", and LPS proposes 3 templates: ORIMA, Australis and SMAC
Australis seems the closest to what photoscan provides in calibration report (k1, k2, k3, p1, p2), but when I enter the estimated values, I only get garbage (works fine if I set all parameters to zero). I assume these are coefficients and don't use units and hence no transformation from pixels to microns or whatever.
LPS can also calibrate the camera using a set of radial distorsions values, but I don't see this type of info in photoscan reporting. Am I wrong ?
If somebody uses photoscan and LPS, I will really appreciate to understand how to share infos between these two packages that are potentially very complementary.
Thanks