For NaN values generated by CloudCompare (when choosing a fixed radius), I see 2 possible solutions:
-
Filter these values before reading the file, or interpolate these values from neighboring points, otherwise do the classification without them and interpolate the classification afterward.
-
Or, if there are no points within a radius r, switch the method to feature calculation based on nearest neighbors.
For NaN values generated by CloudCompare (when choosing a fixed radius), I see 2 possible solutions:
Filter these values before reading the file, or interpolate these values from neighboring points, otherwise do the classification without them and interpolate the classification afterward.
Or, if there are no points within a radius r, switch the method to feature calculation based on nearest neighbors.