Hi,
I am working on building a simple dual lens panoramic camera and I am trying to use PTGUI to both calculate the lens distortion parameters for the forward and rear lens as well as calculate the lens-to-lens Roll, Pitch, Yaw offsets between the 2 lenses. Each lens FOV is around 200Deg. In this way I can apply a template to any images taken with the camera to produce a complete equirectangular image.
For the lens distortion, I am taking a series of images, approximately every 10 degrees rotation, with the camera mounted on a rotating tripod, so that it rotates around a central point. I then load all images from the front camera into PTGUI. I set a crop, then calculate control points and optimise for FOV, A, B and C. I typically get a result with an average control point distance of less than 1.5. I then save these parameters to the lens database.
I then repeat this procedure the rear lens. I believe that both lens models are ok based on the output from the optimiser.
The issue I am facing is then the best way to optimise the R, P, Y between the 2 lenses.
Currently, I create a new project and load a pair of images, one from the Front and the matching one from the Rear sensor. In the lens settings, I add a second lens profile. I load the lens settings, (calculated in the previous step) from the lens database and ensure that in the “Use Individual parameters for images” I set 1 to #1 and 2 to #2.
I then manually create control points and optimise only for R, P and Y for image 2. Although, I typically create around 10-20 control points, but even using higher number of control points, I can only manage to get a “good” result with the average control point distance typically around 2-3. I have tried taking calibration images indoors and outdoors with the same result, although indoors gives poorer results.
Having solved for RPY for the rear image, I then save the project as a template and apply it to other images from the camera.
The issue is that the stitching is always relatively poor, e.g., roof lines can be seen to be not straight and continuous.
I was wondering if there was a method in PTGUI where I could load in all the images (Front and Rear) from my calibration data, rather than only using a single pair of images. I could then use all image pairs to optimise the R,P and Y which would potentially give a more accurate result than simply relying on a single image pair.
Apologies for the lengthy explanation.
Cheers,
nick
Nick, [resending to list]
You are doing things right. Importantly you are calculating the
lens parameters separately using each lens separately.
How to calculate a good average YPR for the second camera to line
up with the first?
You can add multiple panoramas to a project in PTGui.
The other trick instead of loading a whole bunch of panos at once is to keep replacing the images with a new set and adding more control points. This way you never have more that one pano in PTGui at one time.
Similar to the way I documented a method to calibrate the Sphericam. https://www.youtube.com/watch?v=zj2mkMKNYhs
Jim Watters
--
You received this message because you are subscribed to the Google Groups "PTGui Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ptgui+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ptgui/78cdfbaa-064f-4b54-9d2c-d84be428d362n%40googlegroups.com.