Euclidean Distance Transform
For every cell, finds the nearest target cell and computes straight-line distance.
D(p)=minq∈T ||p−q||2
Best used when: distance from raster-defined targets is needed.
Calculate distance from each pixel to the nearest target pixel defined by nonzero values, a specific value, or a value range.
Raster AnalysisEnd-User DocumentationTheory + Formula + ParametersCalculate distance from each pixel to the nearest target pixel defined by nonzero values, a specific value, or a value range.
For every cell, finds the nearest target cell and computes straight-line distance.
| Input | Type | Requirement | Description |
|---|---|---|---|
| Input Raster | raster | Required |
| Parameter | Default | Choices / Range | How to Use It |
|---|---|---|---|
| Raster Band | — | — | |
| Target Definition | nonzero | nonzero, value, range | |
| Target Value | 1 | — | Shown for: value |
| Minimum Target Value | 1 | — | Shown for: range |
| Maximum Target Value | 1 | — | Shown for: range |
| Distance Unit | meters | meters, pixels |
The result should be interpreted according to the selected method and the physical meaning of the input data. Preserve source units, coordinate reference information, NoData meaning, acquisition date, and preprocessing level when comparing results.