0 | Euclidean (2D and 3D, unimplemented) |
1 | octagonal (2D and 3D) - default |
2 | approximate Euclidean (2D and 3D) |
4 | 4-connected (2D) |
8 | 8-connected (2D) |
6 | 6-connected (3D) |
18 | 18-connected (3D) |
26 | 26-connected (3D) |
-D | Maximum distance before iteration stops (default 0 implies an infinite maximum distance). |
-f | The foreground object file. |
-p | Distance function parameter, which is currently only used for approximate Euclidean distance transforms. The value should be \(geq\) 1, with larger values giving greater accuracy at the cost of increased time. Default value - 10.0. |