PTX. import possibility

Feel free to ask any question here
Post Reply
kachlica
Posts: 40
Joined: Sat Feb 15, 2014 9:43 am

PTX. import possibility

Post by kachlica »

I would like to ask if there are no plans on SW development to implement PTX. file format input possibilities. Till now i load into CC only PTS. files which unfortunately do not contain information on normals.
daniel
Site Admin
Posts: 7396
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: PTX. import possibility

Post 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
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7396
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: PTX. import possibility

Post 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.
Daniel, CloudCompare admin
jedfrechette
Posts: 45
Joined: Mon Jan 20, 2014 6:31 pm
Location: Albuquerque, NM
Contact:

Re: PTX. import possibility

Post by jedfrechette »

Leica has some info on their website:

http://www.leica-geosystems.com/kb/?gui ... 79E5937CB2
Jed
kachlica
Posts: 40
Joined: Sat Feb 15, 2014 9:43 am

Re: PTX. import possibility

Post by kachlica »

Well it really seems that PTXfile does not contan direct Nx..Nz values
According to Leica info:
"PTX can only be used on "[[KB:132:gridded]]" clouds (directly from scans), not unordered or unified clouds. Each cloud is "fully populated", in that even missing points are represented (as a line with "0 0 0" for the XYZ coordinate). This gives the importing software enough information to restore the original scan-line ordering of the cloud (for example, to estimate normal vectors). " So probably even after importing PTX file into CC it would be necessary to compute normals of the point clou.d...
daniel
Site Admin
Posts: 7396
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: PTX. import possibility

Post 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.
Daniel, CloudCompare admin
jfhullo
Posts: 90
Joined: Thu Oct 14, 2010 7:16 am

Re: PTX. import possibility

Post by jfhullo »

Good!!! Can't wait to try ptx importer!!

JF
Post Reply