Grooper Help - Version 25.0
25.0.0017 2,127
  • Overview
  • Help Status

Edge Detection

IP Command Grooper.IP

Performs Canny edge detection on an image to identify edges and contours.

Remarks

The Edge Detection command applies the Canny edge detection algorithm to highlight edges and contours in an image. This command is primarily used internally by other IP Commands and is not typically configured directly in an IP Profile. It is based on the well-known Canny algorithm, which detects edges by looking for areas of rapid intensity change.

How Edge Detection Works

  1. The image is converted to grayscale if needed.
  2. The Canny algorithm computes the gradient magnitude and direction for each pixel.
  3. Two thresholds ('Low Threshold' and 'High Threshold') are used to classify pixels as strong edges, weak edges, or non-edges.
  4. Optionally, detected edges can be dilated to increase their width.

Supported Pixel Formats

  • Supports grayscale and color images; color images are converted to grayscale automatically.

Diagnostics

When run in diagnostic mode, Edge Detection generates:

  • Gradient X/Y: Images showing horizontal and vertical gradients.
  • Edge Angles: Visualization of edge directions.
  • Magnitude: Visualization of edge strength.
  • Log Messages: Details about thresholding and edge detection.

Practical Guidance

  • Adjust 'Low Threshold' and 'High Threshold' to control edge sensitivity.
  • Use 'Mask Size' to balance edge localization and noise suppression.
  • Increase 'Dilation Factor' to make edges more prominent for downstream processing.
  • Review diagnostic images to tune parameters for your specific document type.

Properties

NameTypeDescription
General
Command Info

Used By

Notification