Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - uop360

Pages: [1] 2
1
Bug Reports / upload to 4dmapper
« on: May 03, 2016, 03:07:49 PM »
Hi,
there is probably a bug related to exporting of projects to 4dmapper.
I wrote about it here:
http://www.agisoft.com/forum/index.php?topic=5172.msg26019#new
Karol

2
General / Re: Draw 3D Polylines
« on: May 03, 2016, 03:05:27 PM »
Hi,

Ok, I am waiting for a new version of 4dmapper, meanwhile there is a potential error in Photoscan.
When I upload points to 4dmapper from Photoscan 1.2.4 (2399) only about 1/6 is loaded. I checked the bounding box and it included the whole object. Could you please check this type of export?
regards
Karol

3
General / Re: Draw 3D Polylines
« on: April 30, 2016, 03:45:57 PM »
I already exported small part of the project to 4dmapper and I wonder what alse can be done with point cloud.
http://app.4dmapper.com/user/share/479f70442b3d1527c86b1447358687e9681fc2136cea4c46
This is a dense cloud. Can I draw polylines and export them from 4dmapper?
Karol

4
General / Re: export projections & error (pix) for every camera
« on: April 27, 2016, 03:38:56 PM »
thank you.

5
General / Re: export projections & error (pix) for every camera
« on: April 26, 2016, 10:02:41 PM »
Hello Alexey,
thank you for your help.
can it be saved in a txt file?
What is the order of the file content?
I have such results:
Quote
'ladybug_panoramic_000573.png': (1.0790776553543695, 2451), 'ladybug_panoramic_000442.png': (0.9239556223568349, 2330), 'ladybug_panoramic_000614.png': (1.091195176850109, 1756), 'ladybug_panoramic_000615.png': (0.9050643234519736, 2102), 'ladybug_panoramic_000670.png': (1.2253694545436022, 2077), 'ladybug_panoramic_000565.png': (0.9877758236079004, 2614)}
regards
Karol

6
General / export projections & error (pix) for every camera
« on: April 26, 2016, 04:53:50 PM »
Hello,
how can I export a number of projections and error (pix) for every camera?
Karol

7
General / Re: xml (Export Cameras)
« on: April 24, 2016, 03:18:43 PM »
Can anyone help?

8
General / boresight matrix
« on: April 21, 2016, 10:39:44 AM »
Hi,

I would like to calculate boresight matrix between IMU and spherical camera.
I have postprocessed data from IMU and estimated values for camera rotations for spherical camera.
What is the difference between r11...r33 (3x3) in Omega Phi Kappa .txt file and transform (3x3 from 4x4) matrix in Agisoft .xml file? Do they relate to the same coordinate system?
Karol

9
General / xml (Export Cameras)
« on: April 17, 2016, 11:23:05 PM »
Hello,

What is the difference between transformation matrix (3x3 taken from 4x4 in agisoft XML file) and (3x3) r11...r33 available in Omega Phi Kappa camera export?
Do they relate to the same coordinate system?

Karol

10
General / Omega Phi Kappa
« on: April 11, 2016, 01:21:40 PM »
I would like to get OFK for estimated cameras.
I use EPSG 2178 and I added corrections for
yaw: 180, pitch -90 roll -180 in camera calibration.
Are they taken into account when exporting txt file?
I work with spherical cameras.

11
Could you please provide a full script?
I managed to add at the beginning:
import math, PhotoScan

doc = PhotoScan.app.document
chunk = doc.chunk

but there is still problem with line 16:
sina = math.sin(0 - omega)
2016-04-11 12:08:39 NameError: name 'omega' is not defined

 


Hello dellagiu,

Using the following script you should be able to generate camera transformation matrix from OPK data:


Code: [Select]
import math, PhotoScan

#omega, phi, kappa - in radians
#X, Y, Z - coordinate information about camera position in units of the corresponding coordinate system


T = chunk.transform.matrix
v_t = T * PhotoScan.Vector( [0, 0, 0, 1] )
v_t.size = 3
m = chunk.crs.localframe(v_t)
m = m * T
s = math.sqrt(m[0, 0] **2 + m[0,1] **2 + m[0,2] **2) #scale factor

sina = math.sin(0 - omega)
cosa = math.cos(0 - omega)
Rx = PhotoScan.Matrix([[1, 0, 0], [0, cosa, -sina], [0, sina, cosa]])
sina = math.sin(0 - phi)
cosa = math.cos(0 - phi)
Ry = PhotoScan.Matrix([[cosa, 0, sina], [0, 1, 0], [-sina, 0, cosa]])
sina = math.sin(0 - kappa)
cosa = math.cos(0 - kappa)
Rz = PhotoScan.Matrix([[cosa, -sina, 0], [sina, cosa, 0], [0, 0, 1]])
 

t = PhotoScan.Vector([X, Y, Z])
t = chunk.crs.unproject(t)

m = chunk.crs.localframe(t)
m = PhotoScan.Matrix([ [m[0,0], m[0,1], m[0,2]], [m[1,0], m[1,1], m[1,2]], [m[2,0], m[2,1], m[2,2]] ])


R = m.inv() * (Rz * Ry * Rx).t()  * PhotoScan.Matrix().diag([1, -1, -1])

Tr = PhotoScan.Matrix([ [R[0,0], R[0,1], R[0,2], t.x], [R[1,0], R[1,1], R[1,2], t.y], [R[2,0], R[2,1], R[2,2], t.z], [0, 0, 0, 1]])

camera.transform = chunk.transform.matrix.inv() * Tr * (1. / s)

12
General / Orientation of spherical cameras
« on: February 06, 2016, 11:30:43 AM »
Can you please explain how yaw, pitch, roll is defined for spherical cameras mounted on a top of a car?
How the axis of the image  is defined in relation to equirectangular format?
KK

13
General / Yaw Pitch Roll + Omega Pho Kappa
« on: February 06, 2016, 11:27:47 AM »
Could you please illustrate yaw,pitch,roll + omega, phi, kappa that is used in Photoscan?
Pix4D have nice illustrations: https://support.pix4d.com/hc/en-us/articles/205675256#gsc.tab=0

I only found this description in the manual (no images):
Quote
Rotation angles in PhotoScan are defined around the following axes: yaw axis runs from top to bottom,
pitch  axis  runs  from  left  to  right  wing  of  the  drone,  roll  axis  runs  from  tail  to  nose  of  the  drone.  Zero
values of the rotation angle triple define the following camera position aboard: camera looks down to the
ground, frames are taken in landscape orientation, and horizontal axis of the frame is perpendicular to the
central (tail-nose) axis of the drone. If the camera is fixed in a different position, respective yaw, pitch,
roll values should be input in the camera correction section of the Settings dialog. The senses of the angles
are defined according to the right-hand rule

KK

14
Hello,

I also support this feature.
It would be good to input details of interior calibration of cameras within a milticamera rig.
I tried it with Ladybug3.
How can I exctract details about the offset of individual cameras in Ladybug3?
regards
Karol

15
General / Re: We just released annotations on Sketchfab
« on: July 25, 2014, 12:25:23 AM »
Hello,

this is an excelent feature. Do you have more examples with annotations? How can I create annotations?
best wishes
Karol

Pages: [1] 2