Page 1 of 1

Re: PTX. import possibility

Posted: Sat Mar 08, 2014 1:53 pm
by daniel
Do you have any information on how this kind of files is structured?

Looking at a sample it is rather evident that it's a grid structure, with depth, normal and color (7 values per grid cell). There's also a position/orientation matrix at the beginning. But what do the lines 3 to 6 correspond to? And how the normal is coded? (it doesn't seem to be a unit vector).

Code: Select all

345
1074
0 0 0
1 0 0
0 1 0
0 0 1
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
0 0 0 0.500000 0 0 0
0 0 0 0.500000 0 0 0
1.702286 -3.193588 -1.841843 0.456580 51 65 49
1.706894 -3.202316 -1.841354 0.456397 54 70 55
1.711227 -3.210495 -1.840775 0.466102 58 72 57
1.716904 -3.221298 -1.841354 0.459266 61 78 62
1.721603 -3.230179 -1.841141 0.472206 65 82 66

Re: PTX. import possibility

Posted: Sat Mar 08, 2014 2:55 pm
by daniel
Nevermind, in fact the 7 values are: X, Y, Z, intensity, R, G, B.

So there's no normal in PTX files but thanks to the grid structure it should be easier to compute.

Re: PTX. import possibility

Posted: Sat Mar 08, 2014 4:59 pm
by jedfrechette
Leica has some info on their website:

http://www.leica-geosystems.com/kb/?gui ... 79E5937CB2

Re: PTX. import possibility

Posted: Sat Mar 08, 2014 10:38 pm
by daniel
Ok I've put up a simple PTX importer with a quick-and-dirty normal computer based on the grid structure.

I need to get more files samples to check if I'm doing the right things with sensor orientation and cloud orientation matrices but otherwise it should be functional.

It will be available in the next (beta) release.

Re: PTX. import possibility

Posted: Tue Mar 11, 2014 11:11 am
by jfhullo
Good!!! Can't wait to try ptx importer!!

JF