# CloudClean

**CloudClean** is used to make a smart-decimated cloud, or to increase the precision on surfaces. Smart decimation refers to reducing the density of a pointcloud by removing points furthest from estimated surfaces in the cloud.&#x20;

{% hint style="warning" %}
Users have several options for improving precision on hard surfaces. CloudClean decimated will attempt to improve precision without reducing density, similar to [Statistical Outlier Removal](https://docs.phoenixlidar.com/spatialexplorer-8-and-9/user-interface/toolbars/analytics/classify/classify-statistical-outliers) (SOR). The primary difference between the two tools is that SOR will result in a changed classification (assigning points to noise class), whereas CloudClean will create an entirely new pointcloud. For a more arbitrary form of decimation, configure the[ lidar processing settings](https://docs.phoenixlidar.com/spatialexplorer-8-and-9/user-interface/windows/project/rover/lidars/lidar-processing-settings) to exclude every other line, or as is the case with multi-laser systems, utilize auto-downsampling.&#x20;
{% endhint %}

<figure><img src="https://2222094320-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdEevfLZRIk38LUPwDa4V%2Fuploads%2Ft3oJM2VZ97fNXp1rAuko%2Fimage.png?alt=media&#x26;token=0d89d0a4-14d1-4f67-b228-aa6f28c71cee" alt=""><figcaption></figcaption></figure>

**Output Mode:**  Choose between created *Decimated*, *Projected*, or both clouds

**Points per Square Meter:** Target point density for the output cloud. Used only with *Decimated* mode.

**Uniformity:** A value of 1 will try to maximize uniform density in the pointcloud. A value of 0 will disregard uniformity and focus only on improving surface precision. Most users will want to use the default value of 0.&#x20;

### Output Mode:

**Decimated:** Given point density, algorithm picks points that are nearest to the computed surface. It then keeps original points from the cloud, but discards the points furthest away from computed surface.

![Profile Cross Section: Original pointcloud (Red) Vs Decimated pointcloud(Green)](https://content.gitbook.com/content/dEevfLZRIk38LUPwDa4V/blobs/08YUHsNPUbK7rpKCl7xN/image.png)

**Projected:** Projects every original point to a computed surface. It keeps all the points from the cloud, but moves or 'projects' them closer to the computed surface.

![Profile Cross Section: Original pointcloud (Red) Vs Projected pointcloud (Blue)](https://content.gitbook.com/content/dEevfLZRIk38LUPwDa4V/blobs/KTj3BJkKUQO7uhPM4GBD/image.png)
