Edge Detection

Highlight edges and outlines in images

transform 2 credits

Edge Detection

Highlight edges and outlines in images

Overview

The Edge Detection node uses the Sobel algorithm to find and highlight edges in an image. It produces a grayscale image where bright pixels indicate strong edges (boundaries between different colors/tones).

Usage Tips

  • Use a small radius (1-2) for detailed edge detection
  • Apply Gaussian Blur before edge detection to reduce noise
  • Invert the output for white backgrounds with dark lines
  • Great for creating line art effects from photos

Common Pairings

  • Gaussian Blur - Pre-blur to reduce noise before edge detection
  • Invert - Invert for dark lines on light background
  • Adjust BCG - Increase contrast to strengthen edge visibility

Gotchas

  • Output is grayscale - apply color adjustment nodes if needed
  • Noisy images produce noisy edges - blur first
  • Very low contrast images may produce few visible edges

Technical Reference

Inputs

NameTypeRequiredDescription
inputImageYesImage to process

Outputs

NameTypeDescription
outputImageEdge-detected image

Parameters

NameTypeDefaultDescription
params_radiusnumber1Detection sensitivity radius