PTX. import possibility
PTX. import possibility
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.
Re: PTX. import possibility
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).
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
Re: PTX. import possibility
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.
So there's no normal in PTX files but thanks to the grid structure it should be easier to compute.
Daniel, CloudCompare admin
-
- Posts: 45
- Joined: Mon Jan 20, 2014 6:31 pm
- Location: Albuquerque, NM
- Contact:
Re: PTX. import possibility
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...
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...
Re: PTX. import possibility
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.
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
Re: PTX. import possibility
Good!!! Can't wait to try ptx importer!!
JF
JF