Forum

Author Topic: omega phi kappa import  (Read 9507 times)

tufandemirel

  • Newbie
  • *
  • Posts: 4
    • View Profile
omega phi kappa import
« on: November 20, 2015, 10:26:29 AM »
I have a big problem with importing omega phi kappa.
I use Microsoft Ultracam X  camera and only i have X Y Z coordinats and Omega Phi Kappa
How to import camera parameters on format X/Y/Z/O/P/K ? Or how to convert them to yaw pitch roll?

JMR

  • Hero Member
  • *****
  • Posts: 502
    • View Profile
Re: omega phi kappa import
« Reply #1 on: November 20, 2015, 06:09:24 PM »
Very simple! Don't do it. Just let Pscan to calculate them in the alignment. Set cameras accuracy to something that makes sense before the alignment, and fix calibration by entering values given by the camera maker.

Diego

  • Full Member
  • ***
  • Posts: 167
    • View Profile
Re: omega phi kappa import
« Reply #2 on: November 20, 2015, 07:49:01 PM »
Very simple! Don't do it. Just let Pscan to calculate them in the alignment.

Seriously, it's not that simple  :o, it is a big problem in linear flight as power lines or corridors, the truth is a limitation of Agisoft not be able to use IMU parameters to data with high accuracy. What you propose is only a very limited alternative, the ideal is to support the use of high precision IMU.

nadar

  • Full Member
  • ***
  • Posts: 130
    • View Profile
Re: omega phi kappa import
« Reply #3 on: November 20, 2015, 09:18:52 PM »
even if you can import attitude data, Photoscan won't use them. I also find this limitating, but that's a fact

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: omega phi kappa import
« Reply #4 on: November 20, 2015, 09:28:53 PM »
Actually, version 1.2 uses source values for roll, pitch and yaw during alignment and optimization process, if it's present for the cameras that are checked on in the Reference pane.

Shortly I'll post a script that can be used to convert the OPK angles to YPR.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: omega phi kappa import
« Reply #5 on: November 20, 2015, 09:39:06 PM »
The following code is workable in the version 1.2:

Code: [Select]
#to convert opk into ypr
yaw, pitch, roll = PhotoScan.utils.mat2ypr(PhotoScan.utils.opk2mat(PhotoScan.Vector((omega, phi, kappa))).t())

#to convert ypr to opk
omega, phi, kappa = PhotoScan.utils.mat2opk(PhotoScan.utils.ypr2mat(PhotoScan.Vector((yaw, pitch, roll))).t())
Best regards,
Alexey Pasumansky,
Agisoft LLC

stihl

  • Sr. Member
  • ****
  • Posts: 410
    • View Profile
Re: omega phi kappa import
« Reply #6 on: November 20, 2015, 09:57:01 PM »
Niceeee ;D

Paulo

  • Hero Member
  • *****
  • Posts: 1301
    • View Profile
Re: omega phi kappa import
« Reply #7 on: November 24, 2015, 08:33:30 AM »
Dear Alexei,

if I have the exterior orientation of images in following format 

StripNumber   ImageName   CameraX  CameraY   CameraZ Omega   Phi   Kappa   GPStime   Elevation,

I could we go about transforming the Omega Phi Kappa values to pitch roll yaw before importing values to PhotoScan Reference pane?

Thanks for your help,

Attached is sample file...
Best Regards,
Paul Pelletier,
Surveyor

Roy

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: omega phi kappa import
« Reply #8 on: November 24, 2015, 05:40:14 PM »
Hi Alexey.

About the code you attached
yaw, pitch, roll = PhotoScan.utils.mat2ypr(PhotoScan.utils.opk2mat(PhotoScan.Vector((omega, phi, kappa))).t())


I use the 1.2 version yet in my PhotoScan.utils i have nothing like mat2ypr or mat2opk
do I need to import something?
also, what is t()  because i have no such thing in the "Vector" class

thanks. Roy

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: omega phi kappa import
« Reply #9 on: November 24, 2015, 05:45:07 PM »
Hello Roy,

Please check that you are using latest 1.2 version (build 2198).

In the provided code only yaw, pitch, roll and omega, phi, kappa are the variables that can be changed. PhotoScan.Vector means that the argument for the function will be generated using this class.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Roy

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: omega phi kappa import
« Reply #10 on: November 24, 2015, 05:47:39 PM »
HI.

i'm using 1.2.0 build 2154 (64 bit) version.

how can i update to the version you mentioned ?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: omega phi kappa import
« Reply #11 on: November 24, 2015, 05:55:45 PM »
Uninstall current version, download and install the latest release from here:
http://www.agisoft.com/downloads/installer/
Best regards,
Alexey Pasumansky,
Agisoft LLC

Roy

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: omega phi kappa import
« Reply #12 on: November 24, 2015, 05:59:32 PM »
thanks.
I'll try it

(thanks for everything today)

regards, Roy