Page 1 of 1

Extracting 95th percentile

Posted: Tue Dec 15, 2015 3:26 pm
by markallan
Hi all,

I am looking to extract the 95th percentile of points based upon their cloud-to-cloud distance (i.e. remove the extreme values). Is there a simple way to do this in CloudCompare that I'm missing.

Currently, I'm extracting the histogram and calculating a) 95% of total point number and b) the distance at which this number is reached before coming back into CloudCompare and filtering the scalar field by this value. Any simpler way that I've missed would be great help!

Edit: I'm aware of the sliding tool that you can manually move on the histogram to view % of points and value - is it possible then to export directly from this?

Mark

Re: Extracting 95th percentile

Posted: Tue Dec 15, 2015 4:44 pm
by daniel
Two cases:
- if you have a strictly positive scalar field, then you can simply display the histogram and then click anywhere on the histogram. It will display a vertical line with the percentage of values 'below' and the corresponding value. This way you'd get directly what you want

- the above solution doesn't work for non positive scalar fields (as the percentage displayed next to the vertical line includes all values below). But if you admit that the distribution is Gaussian, you can simply fit a Normal distribution on the scalar field (Edit > Scalar fields > Compute Stat. Params) then read the standard deviation (either on the histogram or in the Console). 95% of the samples simply corresponds to twice the standard deviation.