---
title: "Edge Detect"
url: "https://help.maxon.net/ag/en-us/Content/html/Modifier_image_stylize_edge_detect.html"
section_path: "Modifiers > Image > Stylize > Edge Detect"
description: "Outputs the edge of the source image by computing the gradient magnitude. For color or multi-channel images, several edge detection algorithms are …"
---

# Edge Detect

## Brief Description

Outputs the edge of the source image by computing the gradient magnitude. For color or multi-channel images, several edge detection algorithms are proposed to combine the gradients computed in each channel: - Separate: the gradient magnitude is computed in each channel separately, and the output is a color edge image - RMS: the RMS of per-channel gradients magnitudes is computed - Max: the maximum per-channel gradient magnitude is computed - Tensor: the [tensor gradient norm](http://people.csail.mit.edu/tieu/notebook/imageproc/dizenzo86.pdf).\\

## 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 | Off | Enable the alpha channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0 |
| `Size / blur_size` | Float 2D | 0, 0 |  |
| `Bounding Box / rod_mode` | Choice | Expand | - *Expand*<br>- *Crop to format*<br>- *Same as input* |
| `Gradient / gradient_combine` | Choice | Separate | - *Separate*<br>- *RMS*<br>- *Max*<br>- *Tensor* |
| `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 |
