Glass Notebook CI Stable CI Nightly Coverage Open In Colab

DistanceTransforms.jl is a Julia package that provides efficient distance transform operations on arrays.

Table of Contents

Getting Started

To get started with DistanceTransforms.jl, you'll first need to import the package:

using DistanceTransforms

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.

Quick Start

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:

using DistanceTransforms

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.


Check out the Colab notebook to see how to utilize this distance transform in Python Open In Colab