I often subsample the clouds from the command line, using spatial subsample, but sometimes for a quick check I would like to be able to subsample using the mush faster random algorithm, maybe to 10% of the original cloud, or something similar.
Is there a way to do that from command line?
Thanks in advance,
Massimo
Command line - Random subsample to a percentage of the original cloud
Re: Command line - Random subsample to a percentage of the original cloud
Yes, you just need to call -SS RANDOM N... but you'll need to set a number of points (N), not a percentage.
Daniel, CloudCompare admin
Re: Command line - Random subsample to a percentage of the original cloud
Thanks,
I didn't explain well, sorry.
I'm aware of the current random option, but if I have a bunch of clouds and want to simply reduce the size for fast checks using the command line I wouldn't be able to specify the target points for the cloud. A target percentage would be easier.
As an alternative is there a way to extract the number of points in the cloud from the command line?
Thanks again,
Massimo
I didn't explain well, sorry.
I'm aware of the current random option, but if I have a bunch of clouds and want to simply reduce the size for fast checks using the command line I wouldn't be able to specify the target points for the cloud. A target percentage would be easier.
As an alternative is there a way to extract the number of points in the cloud from the command line?
Thanks again,
Massimo
Re: Command line - Random subsample to a percentage of the original cloud
Ah, that's why I specified that it was not a percentage but an absolute number. Sadly it's not possible to use a percentage or retrieve the number of points (apart with the Python interface I guess).
Daniel, CloudCompare admin
Re: Command line - Random subsample to a percentage of the original cloud
ok, got it.
Thanks,
Massimo
Thanks,
Massimo