Statistical Outlier Removal With Normals

Description

This operator identifies and removes outliers based on the statistical distribution of the distances between each point and its neighbors in the point cloud. It first calculates the average distance from each point to its K nearest neighbors, then calculates the mean and standard deviation of all these average distances across the entire point cloud. Finally, points with an average neighbor distance greater than the threshold are considered outliers and removed (or retained in invert mode).

Overview

Filters outliers based on statistical principles by calculating the statistical distribution of distances between each point and its neighbors in the point cloud to identify and remove outliers.

Scenarios

  • Remove Statistical Outliers: Effectively removes points that are significantly further away compared to their neighborhood.

  • Point Cloud Smoothing Preprocessing: Removes outlier noise that might interfere with results before performing surface reconstruction or smoothing operations.

  • Data Cleaning: Suitable for scenarios where point cloud density is uneven and simple radius filtering is ineffective.

Inputs and Outputs

Inputs

Point Cloud: The input point cloud or list of point clouds to be filtered.

Outputs

Filtered point cloud: The list of point clouds after filtering.

Parameters

Number of Neighbors

Description

The number of nearest neighbors considered when calculating the average distance for each point.

Tuning Instructions

The number of neighbors determines the size of the neighborhood considered when calculating local distance statistical features.

  • Smaller number: More sensitive to local noise, capable of capturing detailed changes, but also susceptible to outlier interference.

  • Larger number: Calculation results are smoother, reflecting the overall relationship between points and the surrounding area more stably, but may mask local anomalies.

Parameter Range

[1, 1000], Default value: 10

Parameter Range

Values/Range: [1, 1000]

Default: 10

Standard Deviation Multiplier

Description

Sets how many standard deviations a point’s average neighbor distance is allowed to deviate from the overall mean, used to calculate the upper distance threshold (Threshold = Mean of average distances + Standard Deviation Multiplier × Standard deviation of average distances). If a point P’s distance exceeds this threshold, it means the average distance from point P to its neighbors is significantly greater than the general level of the entire point cloud, so point P is judged to be an outlier.

Tuning Instructions

This coefficient controls the strictness of outlier judgment.

  • Increase coefficient: The threshold becomes higher, and only points deviating very far from the mean will be considered outliers, resulting in weaker filtering.

  • Decrease coefficient: The threshold becomes lower, and points slightly deviating from the mean may be considered outliers, resulting in stronger filtering.

Usually start adjusting from the default value of 1, increasing or decreasing based on the denoising effect and whether valid points are mistakenly deleted.

Parameter Range

[0, 500], Default value: 1

Parameter Range

Values/Range: [0.0, 500.0]

Default: 1.0

Invert Filter

Description

Inverts the filtering logic.

Tuning Instructions

Disabled (Default): Removes outlier points (points whose average neighbor distance exceeds the threshold) and keeps non-outlier points.

Enabled: Keeps outlier points and removes non-outlier points

Parameter Range

Default: False

Enable Node

Description

Controls whether this operator executes its computation.

Tuning Instructions

  • Enabled (Default): Runs the operator function normally.

  • Disabled: The operator performs no operation and directly outputs the input data.

Parameter Range

Default: True