---
title: "Distance Field"
url: "https://help.maxon.net/ag/en-us/Content/html/Modifier_image_other_distfield.html"
section_path: "Modifiers > Image > Others > Distance Field"
description: "Outputs a distance field of the source image based on its alpha channel. The distance field is the distance for each pixel to the closest edge of the …"
---

# Distance Field

## Brief Description

Outputs a distance field of the source image based on its alpha channel. The distance field is the distance for each pixel to the closest edge of the alpha channel.

## Controls

| Parameter / Script Name | Type | Default | Function |
| --- | --- | --- | --- |
| `Enabled / enabled` | Boolean | On |  |
| `Region / region` | Choice | Inside | The region where to compute the distance field<br>- *Inside*<br>- *Outside* |
| `Mode / source_type` | Choice | Alpha | - *Luminance*<br>- *Alpha* |
| `Threshold / threshold` | Float | 0.25 |  |
| `Auto-Contrast / autoContrast` | Boolean | On |  |
| `Mask / mask` | Image | - |  |
