batch convert bin to ascii

Feel free to ask any question here
Post Reply
Irmina
Posts: 1
Joined: Tue Apr 08, 2014 8:41 pm

batch convert bin to ascii

Post by Irmina »

Hi
I was trying to do a conversion of bin files to ascii using -C_EXPORT_FMT option in Command Line. There was no error reported but no ascii file was created. Can you explain why?
Irmina
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: batch convert bin to ascii

Post by daniel »

Well the C_EXPORT_FMT is just used to choose the output format (for clouds). Each time you apply a process the modified cloud/mesh is automatically saved. But there's no official way to output a cloud without processing it right now.

You can use a 'fake' processing (like a subsampling with almost 0 as min distance between points) to generate the same cloud and make CC save it automatically:

Code: Select all

CloudCompare -O myfile.bin -C_EXPORT_FMT ASC -PREC 12 -SEP SPACE -SS SPATIAL 0.000000001
I'll add an option to explicitly output clouds or meshes "as is" to the TODO list.

Daniel
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: batch convert bin to ascii

Post by daniel »

For the records, the next version (2.5.4) will have a new option to do this properly: -SAVE_CLOUDS (and -SAVE_MESHES).
Daniel, CloudCompare admin
OMG20Centz
Posts: 18
Joined: Wed Sep 25, 2013 1:33 pm

Re: batch convert bin to ascii

Post by OMG20Centz »

Dear Daniel (or any other cc enthusiast),

I'm looking for a conversion tool that i could use to convert ply files into pcd.
The GUI command works perfectly, but is pretty long dealing with my 1779 files.

I tried the command line with something like :
CloudCompare -O MyFile.ply -C_EXPORT_FMT PCD

But as you probably chuckled about, it didn't work.
Is the option available through the command line ? Is my flag wrong ?

Working with v2.6.3beta on Ubuntu14.4
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: batch convert bin to ascii

Post by daniel »

The problem here is that PCD input/output is handled by a plugin. And plugins are not supported by the command line tool yet.

But in fact this kind of I/O plugins could perfectly be handled by the command line... I'll see what I can do.
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: batch convert bin to ascii

Post by daniel »

Okay, this will be available in the next version (soon)!
Daniel, CloudCompare admin
OMG20Centz
Posts: 18
Joined: Wed Sep 25, 2013 1:33 pm

Re: batch convert bin to ascii

Post by OMG20Centz »

Great, thank you Daniel !
Looking forward beta-testing it :-)
Post Reply