filters.kdistance

The K-Distance filter creates a new attribute KDistance that contains the Euclidean distance to a point’s k-th nearest neighbor.

Default Embedded Stage

This stage is enabled by default

Example

{
  "pipeline":[
    "input.las",
    {
      "type":"filters.kdistance",
      "k":8
    },
    {
      "type":"writers.bpf",
      "filename":"output.las",
      "output_dims":"X,Y,Z,KDistance"
    }
  ]
}

Options

k
The number of k nearest neighbors. [Default: 10]