Forum

Author Topic: Getting the right camera rotation ?  (Read 4254 times)

nadaouf

  • Newbie
  • *
  • Posts: 1
    • View Profile
Getting the right camera rotation ?
« on: December 28, 2015, 04:22:16 AM »
I want to get the correct camera orientation. In the photoscan xml file there is a transform for each camera and there is a transform for the whole chunk. How do I use them to get the correct rotation of the camera.

How do I use the information in the xml file to obtain the correct rotation matrix for the camera?

I tried multiplying the chunk transform by the camera transform, but this doesn't seem to give the correct result.
« Last Edit: December 28, 2015, 04:27:27 AM by nadaouf »

jonathanH

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Getting the right camera rotation ?
« Reply #1 on: May 06, 2016, 02:26:43 PM »
Hi Nadaouf,

did you mnage to find the camrea orientation in the end? I still haven't managed to find how to do this

Paul Lee

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Getting the right camera rotation ?
« Reply #2 on: March 07, 2017, 05:11:14 PM »
Hello, do you solve this problem? How to get the right orientation...

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15086
    • View Profile
Re: Getting the right camera rotation ?
« Reply #3 on: March 07, 2017, 05:39:45 PM »
Hello Paul,

For the referenced chunk you can export estimated location and orientation information for the cameras via the Reference pane (Export button).
Best regards,
Alexey Pasumansky,
Agisoft LLC

Paul Lee

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Getting the right camera rotation ?
« Reply #4 on: March 08, 2017, 04:20:09 AM »
Thank you for you reply.
Yeah, I have export the file and get the camera position and orientation, and I find the position is in the WGS 84 and the orientation is yaw, roll amd pitch. I need the position  and orientation (phi, theta, kappy) in the model coordinate, So How can I get the position and orientation in the exported model coordinate?
Thank you Alexey! :) :)

Jeremiah_ROWE

  • Guest
Re: Getting the right camera rotation ?
« Reply #5 on: March 08, 2017, 06:42:32 PM »
Hello, I think you might be wanting the "Export Cameras" option found under the Tools/Export/... drop-down menu.



It allows for multiple output types. The Omega Phi Kappa format gives a good delimited text file. You can choose the output file coordinate system before saving the file.

Paul Lee

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Getting the right camera rotation ?
« Reply #6 on: March 10, 2017, 12:14:21 PM »
Okay, Thank you Jeremiah, I got it. :)