Viewing Point Clouds
Sample Datasets:
CloudCompare Import
Export your sonar data from SonarView as a CSV (or use one of the samples)
Open CloudCompare
Drag the CSV from your file explorer onto CloudCompare's 3D viewport (the main part of the window). A dialog will appear
To view the data in CloudCompare, the fields must be assigned correctly as shown below. Note: changing 'Skip Lines' will clear any columns you have assigned, so make that change first.
Click Apply to import the point cloud. You should see something like this;
The color of the points is determined by the ping number. In order to color the points by their height, we need to generate a scalar field containing the height of the point. This can be accomplished in two ways:
Open your CSV in a spreadsheet program (Excel, LibreOffice Calc), copy column 3 (Z position), paste it as a new column (after the ping number column), save the CSV, and then import to Cloud Compare as described above. Designate your new column as a scalar field. After importing, you will be able to use the scalar field to color the points.
Use CloudCompare's rasterize tool to generate a new point cloud with the scalar field.
Open the Rasterize tool
Set the following settings:
Choose step size (in meters), this will vary depending on your needs, for this example 0.2m is used.
Set the active layer to Z Values.
Direction: Z
Cell height: Minimum
Project SFs: minimum value.
The Fill With setting depends on your needs. Leave Empty will most accurately represent the original point cloud. Kriging will generate new points to fill gaps, which can produce a satisfying result.
Click Export -> Cloud to save the new point cloud, which will be automatically colored by height.
Working with Point Clouds
The point cloud can be made more readable and visually appealing by changing the color scale of the new point cloud. The Viridis color scale is used in this image.
Increasing the point size can make it easier to see the points when zoomed in:
Trimming the display range (of the color scale) can help emphasize a feature:
Last updated