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 - chr00t

Pages: [1]
1
Python and Java API / Re: Move origin
« on: August 23, 2016, 06:01:15 PM »
Working as a charm,

Thanks Alexey

2
Python and Java API / Rotate chunk
« on: August 23, 2016, 06:00:40 PM »
Hello,

Is it possible to rotate a chunk so a chosen camera gets at 0.0 for each omega kappa phi angles? Would you provide a snippet code?

3
Hello,

I've got around using a camera as the origin thanks to Alexey snippets,

Now I need to set the angles for this camera as 0.0 0.0 0.0 so it becomes my referential, how do I do that?

4
Python and Java API / Orientation with 3 points
« on: August 23, 2016, 03:52:09 PM »
Hello,

Could you provide a snippet code to set an orientation using 3 points?

5
Python and Java API / Re: Move origin
« on: August 19, 2016, 03:37:07 PM »
I'll consider checking names and range later on for sure :)

But why is this happening?

2016-08-19 14:36:10   File "C:/Users/User/Desktop/Test/Origin.py", line 8, in <module>
2016-08-19 14:36:10     T[i,3] = -origin
2016-08-19 14:36:10 TypeError: 'PhotoScan.Camera' object does not support indexing

6
Python and Java API / Move origin
« on: August 19, 2016, 02:50:26 PM »
Hello,

Would you complete that snippet on how to change the origin?

I want the first camera to become the new origin

import PhotoScan
import math
doc = PhotoScan.app.document
doc.open("project.psx")
chunk = doc.chunk
camera_becoming_origin = chunk.cameras[0];

then transform ?  :o

7
General / Re: About X Y Z Omega Kappa Phi
« on: August 19, 2016, 01:01:44 PM »
Hello Alexey,

Maybe you have a snipet code to place my chunk origin at a camera (with id parameter) as well ?

That would already help :)

8
General / Re: About X Y Z Omega Kappa Phi
« on: August 18, 2016, 07:26:32 PM »
Hello Alexey,

Meanwhile I've rotated and resized the box region, updated the reference and found only the xyz in  X, Y, Z, Omega, Phi, Kappa, r11, r12, r13, r21, r22, r23, r31, r32, r33 have changed.

This leads me to the conclusion that the ΩΚΦ angles are truly Euler angles but then there is no reason why then they would fail to provide a good quaternion, is that a bug?

Quote
camera-2.png   
0.8051066571537279   -0.9076256996109369   -1.8159062144694931   
-179.6888195208823300   52.3793486314698740   90.7710851017438070   
-0.0082149123103458   -0.9998368037910861   -0.0160897793819251   
-0.6103754138135284   0.0177587869730240   -0.7919131768680268   
0.7920696746042596   0.0033153084430327   -0.6104216897377008

camera-4.png      
1.1178728201582973   -0.9611051560399571   -0.9029484222207344   
26.5590846325664880   83.3219911326379050   -114.7948469353612800   
-0.0487683918952583   -0.9982537889603553   -0.0333319183103087   
0.1055694047577727   0.0280329857313585   -0.9940167264639339   
0.9932153566729826   -0.0519954280420892   0.1040179346635943

camera-6.png      
0.7355822410985160   -1.0872575771320605   -0.1127159746206833   
9.1274858932437635   40.3814939556749340   -96.8869459377366270   
-0.0913416500607190   -0.9925374909692238   -0.0807838596794168   
0.7562513581063820   -0.0163605038951134   -0.6540766142238622   
0.6478738969324498   -0.1208373408049706   0.7521022209385804

camera-8.png      
-0.0846016115838971   -0.9916386692662754   0.2302176215380513   
8.0641918230484428   0.2524229136523247   -94.1487457333839760   
-0.0723453124889908   -0.9875617409995514   -0.1395992961114244   
0.9973699145645993   -0.0710142142216357   -0.0144994792971232   
0.0044055966990076   -0.1402811073966079   0.9901019147670139

camera-10.png      
-1.0380650980377939   -0.9647065416527290   -0.1034913043493802   
3.3260460728520638   -43.6527880602661330   -89.6485269614025950   
0.0044384048968697   -0.9985424351478940   -0.0537894578043440   
0.7235225766992672   -0.0339241966153302   0.6894666271042113   
-0.6902864489242310   -0.0419780191638231   0.7223174263013852

camera-12.png      
-1.4150051389770371   -0.9895515510964364   -0.9234288064090772   
108.7118643194897500   -86.5433047015071110   13.4886022138141520   
0.0586309897263075   -0.9941718693186216   -0.0904693390007428   
-0.0140637201952645   -0.0914388376446278   0.9957113792382153   
-0.9981806543997850   -0.0571072081765261   -0.0193429045466279

camera-14.png      
-1.1524546885780349   -0.9316500241867303   -1.8037932663026739   
-178.9732898310350300   -49.2397400583627630   88.5498143932980070   
0.0165233535404082   -0.9991757216938302   -0.0370790502223665   
-0.6526862805320275   -0.0388717449906560   0.7566304293686905   
-0.7574480827047132   0.0116989152914071   -0.6527905769754632

These values put into orientation looks like they have nothing to do with what I'm working on  :'(








9
General / Re: About X Y Z Omega Kappa Phi
« on: August 18, 2016, 05:33:30 PM »
Thanks Alexey,

If you could point me to these specific functions that would be very nice of you.


10
General / Re: About X Y Z Omega Kappa Phi
« on: August 18, 2016, 04:52:17 PM »
Hello Alexey,

The chunk has no referential, no.

The shots are happening indoors anyway, so i guess it's the default one. By the way I can hardly see the scene origin on the UI  ;)

Could I set the scene origin to a camera origin? Or to the center of a given set of cameras locations?

11
General / About X Y Z Omega Kappa Phi
« on: August 18, 2016, 04:02:00 PM »
I'm trying to use the camera positions calculated by Photoscan, especially the angles.

 The quaternions I'm computing from the OPK file's Euler angles appears to be garbage as they don't express the actual orientation of each cameras supposing the origin (0,0,0) is in the center of my model.

I'm using
# PhotoID, X, Y, Z, Omega, Phi, Kappa, r11, r12, r13, r21, r22, r23, r31, r32, r33

When i place these values to quaternions into a 3D coordinate systems I'm expecting to see radiant arrows in a plane, about this: http://www.featurepics.com/StockImage/20110114/arrows-pointing-to-center-stock-illustration-1756808.jpg as cameras are on a circle pointing inward to an object.

But I get all quaternions more or less around a straight -Y axis.

So, what is going on?

Is the origin waaay off? How would I move said origin?

Are these outputted values suceptible to gimbal lock and possibly actually gargabe?





12
General / Kinect V2 Camera Calibration parameters
« on: July 27, 2016, 03:14:02 PM »
I'm looking for the Kinect V2 Camera Calibration parameters:

Pixel size (mm) :
Focal length (mm) :
Fx:
Fy:

Thanks for your inputs!

Pages: [1]