Point Cloud Classification

Point Cloud Classification - Ground, Buildings and Vegetation

Back to overview

< Previous section    Next section >

Overview

In this section of the tutorial, we will classify noise, ground, vegetation, and building points. The classification of power lines and pylons will be covered in the next section.

In this section, we will perform the following steps to derive the desired point classes:

  1. Filter out noise points.
  2. Classify ground and non-ground points.
  3. Detect planar surfaces to identify building roofs.
  4. Classify building and vegetation points.
  5. Clean up building facades.
  6. Clean up building roofs.

Labelling Noise Points

The first step in point cloud classification is usually to identify and filter out noise (outlier) points. These points should be dealt with before proceeding with further classification, as erroneous measurements can negatively affect subsequent processing steps. This is particularly important for ground classification, as low-lying outliers can lead to significant classification errors.

Our example dataset is relatively clean, but we will perform noise labelling nonetheless.

Several tools are available for noise filtering. In this tutorial, we will use the Remove Isolated Points tool with the following settings:

Tool: Remove Isolated Points
Geoprocessing: LIS Pro 3D β†’ Filtering β†’ Point Cloud   //    Tools β†’ LIS Pro 3D β†’ Filtering

Parameter Setting
>> Point Cloud las_subset_tiles
    Copy existing Attributes πŸ—Ή
> Neighborhood Point Cloud <not set>
< Filtered Point Cloud <not set>
Search Radius 3
Maximum Number of Points 2
Method label points
    Attribute Name noise
    Class ID Noise 7
    Class ID Undefined 1

With these settings, the tool labels all points that have no more then two points within search radius of 3m (including the query point itself) as outliers.

After execution, the point cloud contains a new attribute field called noise (see the dataset’s Description tab). This field contains two classes: Noise points (class 7) and undefined points (class 1).

The Messages window reports that 18 points were labelled as noise, corresponding to 0.001% of the dataset.

Note

Keep in mind that, in typical raw point cloud data, a considerably larger number of noise points should be expected, including both low- and high-lying outliers. These outliers should be identified and labelled before proceeding with the subsequent processing steps.

Ground Classification

We will use the Ground Classification tool to label ground points. In its basic configuration, the tool uses a TIN (Triangulated Irregular Network) densification approach to separate ground from non-ground points.

The process starts by creating an initial triangulation from the lowest points within a coarse raster grid, whose resolution is defined by the Initial Cell Size parameter. Additional points are then iteratively inserted into the TIN based on distance and angular criteria.

The densification process stops when no further points meet the insertion criteria. Finally, the distance of each point to the resulting TIN is evaluated to determine which points are classified as ground.

The tool not only identifies and labels ground points but also calculates the height above ground for every point in the same step. This is an important attribute that we will need for subsequent processing steps.

  • Select the las_subset_tiles dataset as the input.
  • Select the noise attribute created in the previous step with the Classification parameter.
  • Set Exclude Point Classes to 7 to exclude the identified noise points.
  • Adjust the seed generation and TIN densification parameters as required.

Tool: Ground Classification
Geoprocessing: LIS Pro 3D β†’ Classification   //    Tools β†’ LIS Pro 3D β†’ Classification

Parameter Setting
>> Point Cloud las_subset_tiles
    Classification noise
    Segment ID <not set>
    Copy existing attributes πŸ—Ή
    Spatial Sorting ☐
< Point Cloud Classified <not set>
   Attribute Suffix
< TIN Polygons <not set>
Seed Generation
Initial Cellsize 50
Final Cellsize 0.5
Adjust Cellsize ☐
Filter Seeds ☐
TIN Densification
Terrain Angle 88
Minimum Edge Length 0.5
Maximum Angle 35
Maximum Distance 0.8
Z Tolerance 0.05
Segments
Point Cloud Normalization
Attach DZ to Point Cloud πŸ—Ή
Classification
Exclude Point Classes 7

After executing the tool, the Map View is updated, displaying the point cloud with ground and non-ground points in different colors. The Messages window reports that approximately 64% of the points in the dataset have been classified as ground.

Tip

You can also inspect the updated dataset in the Point Cloud Editor. To do so, select the newly created grd_class attribute with the Classification parameter. You can then use the keyboard shortcut 5 to colorize the point cloud by classification.

Remember to save your project, including all modified datasets, regularly: File β†’ Project β†’ Save Project

Detection of Planar Surfaces to Identify Building Roofs

To classify building points, we first need to perform an additional preparatory step: detecting planar surfaces in the point cloud. We will use the Segmentation by Plane Growing tool, which applies a plane-fitting algorithm to segment the point cloud.

To speed up processing, we will exclude ground points from the analysis. For all remaining points, the algorithm fits a plane to the points within their 3D neighborhood and evaluates how well the fitted plane represents these points.

Well-fitting planes indicate that the query points are located on planar surfaces. These planes are used to calculate the normal vectors at the corresponding query points. The resulting normal vectors are then used in a region-growing approach to group adjacent points with similar orientations into planar segments.

  • Select the las_subset_tiles dataset as the input.
  • Select the grd_class attribute created in the previous step as the Filter Attribute.
  • Apply the following settings:

Tool: Segmentation by Plane Growing
Geoprocessing: LIS Pro 3D β†’ Segmentation   //    Tools β†’ LIS Pro 3D β†’ Segmentation

Parameter Setting
>> Point Cloud las_subset_tiles
    Seed Attribute <not set>
    Threshold Attribute <not set>
    Filter Attribute grdclass
    Direction Scanner (X) <not set>
    Copy existing attributes πŸ—Ή
< Point Cloud Segmented <not set>
    Attribute Suffix
Filtering
Low Range 0;1
High Range 3;64
NN Search
Method NN radius
Search Radius 1
Minimum Number of Neighbors 3
Segmentation
Robust Plane Fitting πŸ—Ή
    Maximum Distance 0.1
    Minimum Percentage 50
    Method Search Point search point must be included in best fit plane
    Random Seed 2
Growing Radius 1
Growing Plane Distance 0.1
Relabel all Points ☐
Segmentation Iterations 1
Region Growing
Search Radius 1
Minimum Segment Size 20
Maximum Segment Size 100000
Maximum Normal Difference 10
Maximum Plane Offset 0.2
Normal Recalculation Interval 100000
Output
Segment Size ☐
Normal Vector ☐
Slope ☐
Aspect ☐
Quality of fit ☐

After executing the tool, the Map View is updated to display the segmented planar surfaces in the scene. Each planar segment is assigned a random color, so the colors in your visualization may differ from those shown here.

Note that all ground points share the same color because they were excluded from processing and assigned the invalid segment identifier. Other points located on non-planar surfaces (mostly vegetation) share a different color. This indicates that they were included in the analysis but did not meet the criteria for classification as planar surfaces.

Tip

You can also inspect the updated dataset in the Point Cloud Editor. Select the segmentid attribute with the Random parameter. You can then use the keyboard shortcut Q to display the point cloud with randomly colored segment identifiers.

Building and Vegetation Classification

We have now calculated all three attributes required by the Enhanced Point Cloud Classification tool to classify building and vegetation points:

  • Ground/non-ground classification.
  • Height above ground.
  • Planar surface segment identifiers.

The tool first groups planar segments into building complexes and evaluates each complex based on several criteria. This helps distinguish actual buildings from other planar objects that do not meet the building criteria, such as cars or planar surfaces within dense vegetation.

Points that are not classified as buildings are subsequently evaluated for vegetation classification. A point is classified as vegetation if a user-defined point density threshold is reached within its neighborhood. All remaining points are labelled as undefined.

  • Select the las_subset_tiles dataset as the input.
  • Provide the segmentid attribute containing the planar surface segment identifiers.
  • Provide the grd_class attribute containing the ground/non-ground classification.
  • Provide the dz attribute containing the height above ground.
  • Apply the following settings:

Tool: Enhanced Point Cloud Classification
Geoprocessing: LIS Pro 3D β†’ Classification   //    Tools β†’ LIS Pro 3D β†’ Classification

Parameter Setting
>> Point Cloud las_subset_tiles
    Segment ID segmentid
    Class ID Ground grdclass
    DZ dz
    Copy existing attributes πŸ—Ή
< Point Cloud Classified <not set>
    Attribute Suffix
Exclude Point Classes 7
Buildings
Method point cloud features
Minimum DZ 2
Growing Radius 1
Feature Radius 1
Minimum Neighbor Ratio 60
    Slope-Adaptive ☐
Mininum Points Building 200
Vegetation
Search Radius 2
    Minimum Points Vegetation 5
Minimum DZ Low Vegetation 0
Minimum DZ Medium Vegetation 0.3
Minimum DZ High Vegetation 2
Calibration Information
Output Calibration Information ☐

After executing the tool, the Map View is updated once again to reflect the new classification results:

Tip

You can also inspect the updated dataset in the Point Cloud Editor. Set the Classification parameter to the newly created classid attribute. Then use the keyboard shortcut 5 to colorize the point cloud by classification.

The classification still contains some errors, which are best observed in the 3D view. In particular, points on building facades and small roof structures, such as chimneys, are incorrectly classified as vegetation. To address these misclassifications, we will perform two additional cleaning steps.

Clean Building Facades

First, we will remove vegetation misclassifications on building facades using the Clean Building Facades tool:

  • Select the las_subset_tiles dataset as the input.
  • Select the classid attribute created in the previous step as Attribute to Filter.
  • Set the Attribute Suffix to facades. This makes it easier to identify the resulting attribute in subsequent processing steps.
  • Apply the following settings:

Tool: Clean Building Facades
Geoprocessing: LIS Pro 3D β†’ Classification   //    Tools β†’ LIS Pro 3D β†’ Classification

Parameter Setting
>> Point Cloud las_subset_tiles
    Attribute to Filter classid
    DZ Ground <not set>
    Copy existing attributes πŸ—Ή
< Point Cloud Filtered <not set>
    Attribute Suffix facades
Filter
Search Radius 1
   Building Class(es) 6;6
   Low Attribute Range 3;5
   High Attribute Range 7;18
   Target Class 1

After executing the tool, the cleaned classification is stored in a new attribute called classid_facades.

Clean Building Roofs

Finally, we will remove vegetation misclassifications on building roofs using the Clean Building Roofs tool:

  • Select the las_subset_tiles dataset as the input.
  • Select the classid_facades attribute created in the previous step as Attribute to Filter.
  • Set the Attribute Suffix to roofs.
  • Apply the following settings:

Tool: Clean Building Roofs
Geoprocessing: LIS Pro 3D β†’ Classification   //    Tools β†’ LIS Pro 3D β†’ Classification

Parameter Setting
>> Point Cloud las_subset_tiles
    Attribute to Filter classid_facades
    Copy existing attributes πŸ—Ή
< Point Cloud Filtered <not set>
    Attribute Suffix roofs
NN Search
   Dimension 3D search
   Search Radius 2.5
   Use Inner Radius ☐
Filter
   Classes to Filter 4;5
   Target Class 1
   Threshold Majority 25
   Excluded from Majority 0;1;2

After executing the tool, the cleaned classification is stored in a new attribute called classid_facades_roofs.

A comparison of the initial classification (classid) with the final classification (classid_facades_roofs) shows that vegetation points incorrectly classified on building facades and roofs have now been relabelled as undefined (class 1):

Intial classification (classid attribute):

Cleaned classification (classid_facades_roofs attribute):

Recap

In this section we have classified an ALS point cloud into the following classes: ground, buildings, and vegetation (low/medium/high). To achieve this, we applied the following processing workflow:

  1. Outlier detection and noise point labelling.
  2. Ground/non-ground classification.
  3. Detection and segmentation of planar surfaces for building roof identification.
  4. Building and vegetation classification.
  5. Removal of vegetation misclassifications on building facades and roofs.

In the next section, we will identify and classify two additional classes: power lines and pylons.

< Previous section    Next section >

Back to overview