Single max value of point clouds distance by scripting

Feel free to ask any question here
Post Reply
bmartin
Posts: 1
Joined: Mon Oct 24, 2016 5:45 pm

Single max value of point clouds distance by scripting

Post by bmartin »

Hello,

I would like to get a SINGLE value for the maximum distance between two point clouds that I want to compare using CC on the command line. In the following link,

http://www.danielgm.net/cc/doc/wiki/ind ... #Example_1

I found an example like:

Code: Select all

CloudCompare -o cloud1.bin -o cloud2.asc -c2c_dist -split_xyz -model HF SPHERE 50.0
The problem is that it generates a complete cloud with the scalar value of each point being its distance to the reference cloud. What I really want is to only get the MAX value of all these scalar values. So you understand my business case, here is why...

I have very complicated C++ point cloud algorithms that I need to refactor and optimize. I have a bunch of point clouds that are the results of my original code and I want to be sure that my refactoring still gives the same results within a given tolerance (very small). I want to be able to run the new code and compare its output with the old point clouds automatically because I have over 80 such comparisons to make. That's why I need to be able to do it by scripting and get a simple PASS/FAIL answer for each comparison based on my tolerance.

Regards,

Bruno Martin
daniel
Site Admin
Posts: 7721
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Single max value of point clouds distance by scripting

Post by daniel »

Well, that could be done, but the command line mode will output a lot of text anyway.

We could maybe output somewhere in the console something like 'MAX DISTANCE = XXX'. But then you'll have to extract this information from the output. Would it work for you?
Daniel, CloudCompare admin
Post Reply