---
title: "Erode Dilate"
url: "https://help.maxon.net/ag/en-us/Content/html/Modifier_image_matte_erode_dilate.html"
section_path: "Modifiers > Image > Matte > Erode Dilate"
description: "Useful to shrink or extend the edges of a matte. Autograph offers 3 different algorithms which are useful in different scenarios:"
---

# Erode Dilate

## Brief Description

Useful to shrink or extend the edges of a matte. Autograph offers 3 different algorithms which are useful in different scenarios:

- *Morphological*: Use a rectangular structuring element of specified size to perform a dilatation (if size > 0) or erosion (if size \< 0)
- *Blur Remap*: Blur the image and then remap the values of the result, performing an operation that looks like a blur or dilatation
- *Power-Weighted Blur*: Uses a power-weighted filter to erode or dilate the image, which gives a smoother result than other approaches.

## Controls

| Parameter / Script Name | Type | Default | Function |
| --- | --- | --- | --- |
| `Enabled / enabled` | Boolean | On |  |
| `Red / process_red` | Boolean | On | Enable the red channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0 |
| `Green / process_green` | Boolean | On | Enable the green channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0 |
| `Blue / process_blue` | Boolean | On | Enable the blue channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0 |
| `Alpha / process_alpha` | Boolean | On | Enable the alpha channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0 |
| `Method / method` | Choice | Morphological | - *Morphological*<br>- *Blur Remap*<br>- *Power-Weighted Blur* |
| `Size / size` | Float 2D | 0, 0 |  |
| `Bounding Box / rod_mode` | Choice | Expand | - *Expand*<br>- *Crop to format*<br>- *Same as input* |
| `Remap factor / blur_remap_factor` | Float | 0 |  |
| `Exponent / exponent` | Float | 1 |  |
| `Remap Range / remap_range` | Float 2D | 0, 1 |  |
| `Crop To Composition Format / crop_source_to_comp` | Boolean | Off | Useful to increase performances if you don't care that the intensities |
| `Filter / filter` | Choice | Gaussian | - *Gaussian*<br>- *Box*<br>- *Triangle*<br>- *Quadratic* |
| `Mask / mask` | Image | - |  |
| `Mix / mix_with_source` | Float | 1 | Dissolves between the original image at 0 and the image with the effect applied at 1 |
