Page 1 of 1

Export cloud info in command line mode

Posted: Mon Jun 28, 2021 1:24 pm
by darcycharlton
An option to 'Export cloud info' under the command line function < -RASTERIZE -GRID_STEP {value} > would allow users to accurately place raster images in 2D space. The Barycenter (X,Y,Z) information could be used to apply a simple translation of the image.

It could look something like this:

-RASTERIZE -GRID_STEP -CLOUD_INFO {value}

which could generate the .CSV file (the same file that would be generated using GUI (Tools > Batch Export > Export cloud info) alongside the .TIF file generated by:

-OUTPUT_RASTER_RGB


Export cloud info:
https://www.cloudcompare.org/doc/wiki/i ... cloud_info

CC will save in a CSV file (one line per cloud):

[*] Name
[*] Number of points
[*] Barycenter (X, Y, Z)
[*] For each scalar field
[*] Name
[*] Number of valid values
[*] Mean value
[*] Std. dev.
[*] Sum

Re: Export cloud info in command line mode

Posted: Wed Jun 30, 2021 8:03 pm
by daniel
guess I'll add that to the TODO list then ;)

Re: Export cloud info in command line mode

Posted: Mon Nov 21, 2022 3:52 pm
by pflani
Hi Daniel,
Instead of exporting the box center ("Barycenter (X, Y, Z)") when exporting cloud info, could we get the box dimensions?
I'm happy to tinker with this on my own fork (v2.13.alpha) if you could point me towards the right code; your TODO list is super long!
Paul

Re: Export cloud info in command line mode

Posted: Tue Nov 22, 2022 9:28 pm
by daniel

Re: Export cloud info in command line mode

Posted: Tue Nov 29, 2022 3:05 pm
by pflani
That is very helpful, thanks!