CloudCompare for batch comparsion

Feel free to ask any question here
Post Reply
GulKhanRa
Posts: 3
Joined: Wed Aug 03, 2016 3:53 pm

CloudCompare for batch comparsion

Post by GulKhanRa »

Hey

I have a quite interesting problem.
Imagine multiple point clouds in a city (from MLS), and their intersections. I want to define, how big is the difference between the clouds at the intersections. The C2C comparsion is very good in CC, but I want to batch it.
I usually use FME for GIS problem solving. I read about the CC console commands, but I can't find any detailed information about, how to use the codes, for example, I have to type the commands to CMD, or Powershell? Am I have to install any additional plugins to make this work? Is it possible to write a console command like: Input cloud - c2c - results in numbers or in colored JPG or something - repeat (this would be my goal).
In FME, I can use the SystemCaller, to give order other programs to solve tasks, but I have no idea, how to make CC do this.
Unfortunately, I do not have programming knowledge, so I only support my task with FME, and Google.
If you have any suggestions or remarks, how to make CC to do the above mentioned tasks (if it's possible), I would happy to hear it.
Thanks for your help!
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: CloudCompare for batch comparsion

Post by daniel »

Indeed, the command line mode is to be called through cmd on Windows (or any other console tool, such as powershell, etc.).

Then you can type something like (see http://www.cloudcompare.org/doc/wiki/in ... d_distance):

Code: Select all

CloudCompare -o cloud1.bin -o cloud2.asc -c2c_dist
And I'm not a script ace myself, but looking on the net you can easily find how you can repeat the process on a set of files (replacing 'cloud1.bin' by one file in the set automatically).

And regarding the output, it will create a new file with the compared cloud and the distance values as scalar field. For now there's no other output.
Daniel, CloudCompare admin
GulKhanRa
Posts: 3
Joined: Wed Aug 03, 2016 3:53 pm

Re: CloudCompare for batch comparsion

Post by GulKhanRa »

Dear Daniel,

I found that page, I tried to understand the code, and I do so, but...
I have LASTOOLS in my mind, where I have to give the full path for the exe, and the full path for input and output files.
Now, If I try to give 'CloudCompare' to CMD, it did not recognized the command.
And how can I define to CC, where to look for cloud1.bin and cloud2.asc, or where to write the output file in the given example?
I haven't found any remarks on this. I can imagine like:

CMD> c:\Program Files\CloudCompare\CloudCompare.exe -o c:\TEST\cloud.las -o c:\TEST\cloud2.las -c2c_dist

I suspect that, my logic is false, but I don't understand, how to use the commands in CMD, and as I mentioned, I haven't seen any remarks on the linked CCWiki page, how to define the path.
Thanks for your answer.
Haowyr
Posts: 48
Joined: Wed Feb 11, 2015 11:01 am

Re: CloudCompare for batch comparsion

Post by Haowyr »

Well, personnaly, I execute it from the CC Repertory. I think this is where your problem is coming from.
Post Reply