DistanceTransforms.jl is a Julia package that provides efficient distance transform operations on arrays.
To get started with DistanceTransforms.jl, you'll first need to import the package:
The most up-to-date version of DistanceTransforms.jl can be found on the main/master branch of the GitHub repository. If you're using an unregistered version, you may need to add the package explicitly.
For detailed documentation and tutorials, you can refer to the official notebook.
Distance transforms are essential for many computer vision-related tasks. With DistanceTransforms.jl, you can easily apply efficient distance transform operations on arrays in Julia.
For example, to use the quintessential distance transform operation:
arr = [
0 1 1 0
0 0 0 0
1 1 0 0
result = transform(arr)
The library is built around a common
transform interface, allowing users to apply various distance transform algorithms to arrays using a unified approach.