This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

EdgeDetect

EdgeDetect[image]
finds edges in image and returns the result as a binary image.
EdgeDetect
finds edges at the scale of the specified pixel range r.
EdgeDetect
uses a threshold t for selecting image edges.
  • EdgeDetect uses hysteresis thresholding with a global threshold t. For additional forms of the threshold parameter, see the reference page for MorphologicalBinarize.
  • EdgeDetect uses radii in vertical and horizontal directions.
  • The Canny edge detection algorithm is used by default. With an explicit setting of the Method option, other derivative filters can be specified. Possible settings include:
"Canny"first-order directional Gaussian derivatives
"ShenCastan"first-order derivatives of exponentials
"Sobel"binomial generalization of Sobel masks
  • An option setting "StraightEdges"->s can be used to control the selection of edges based on their straightness. With the default setting , all edges are returned. A setting selects only the longest and strongest lines.
Detecting edges in a color image:
Specify the scale of edges to detect:
Detecting edges in a color image:
In[1]:=
Click for copyable input
Out[1]=
 
Specify the scale of edges to detect:
In[1]:=
Click for copyable input
Out[1]=
Find edges in a color image:
Edges at a specified pixel scale:
Edge selection using an explicit global threshold:
Shen-Castan edge detection:
Find straight edges in an image:
New in 8