Extracting 95th percentile

Feel free to ask any question here
Post Reply
markallan
Posts: 6
Joined: Wed Mar 04, 2015 10:35 am

Extracting 95th percentile

Post 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
daniel
Site Admin
Posts: 7709
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Extracting 95th percentile

Post 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.
Daniel, CloudCompare admin
Post Reply