As anyone written a reader/writer of cloudompare .bin files for matlab ?

Feel free to ask any question here
Post Reply
Dimitri
Posts: 156
Joined: Mon Oct 18, 2010 9:01 am
Location: Rennes (France)
Contact:

As anyone written a reader/writer of cloudompare .bin files for matlab ?

Post by Dimitri »

All in the title.

Something objected oriented as this very neat .las reader/writer would be great !
http://www.mathworks.com/matlabcentral/ ... der-writer
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: As anyone written a reader/writer of cloudompare .bin files for matlab ?

Post by daniel »

This might be a little hard as the BIN format is changing quite often. It's a serialized binary file which contents are tightly linked with CloudCompare's (C++) classes as well as the database hierarchy (this is why it loads so fast by the way).

The only way would be to use a wrapper on the qCC_db library.
Daniel, CloudCompare admin
Dimitri
Posts: 156
Joined: Mon Oct 18, 2010 9:01 am
Location: Rennes (France)
Contact:

Re: As anyone written a reader/writer of cloudompare .bin files for matlab ?

Post by Dimitri »

Hi Daniel,

yes, I'd thought that the frequent evolution of the .bin format would be an issue. The pb is to be able to process in matlab large clouds with several scalars. Using ascii files is easy, but really painfull in terms of reading/writing and file size.

Maybe the .pcd format would be a good binary alternative to the dreaded ascii file format when you want to export several scalars for big cloud. What are the provisions of the .pcd format for extra scalar fields (beyond R,G,B and the normals) ?

I've used also .las file, but there are very few scalars in float that you can use. There's provision for extra data to be appended at the end of the file, but it's hardly used/coded.
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: As anyone written a reader/writer of cloudompare .bin files for matlab ?

Post by daniel »

I guess PCD files would be good candidates (but I don't know the format - you should ask Luca ;)

Binary PLY would also be a good candidate:
http://www.mathworks.com/matlabcentral/ ... read_ply.m
Daniel, CloudCompare admin
Post Reply