EdgeDetect

EdgeDetect[image]
finds edges in image and returns the result as a binary image.

EdgeDetect[image,r]
finds edges at the scale of the specified pixel range r.

EdgeDetect[image,r,t]
uses a threshold t for selecting image edges.

Details and OptionsDetails and Options

  • EdgeDetect uses gradient methods to find edges.
  • EdgeDetect works with 3D as well as 2D images.
  • EdgeDetect[image] is equivalent to EdgeDetect[image,2].
  • EdgeDetect[image,r,t] uses hysteresis thresholding with a global threshold t. For additional forms of the threshold parameter, see the reference page for MorphologicalBinarize.
  • In 2D, EdgeDetect[image,{rrow,rcol}] uses radii in vertical and horizontal directions.
  • In 3D, EdgeDetect[image,{rslice,rrow,rcol}] uses range in height, in depth, and in width.
  • EdgeDetect takes a Padding option. The default setting is Padding->"Fixed".
  • 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.
  • option is ignored when used with Image3D objects.
Introduced in 2010
(8.0)
| Updated in 2014
(10.0)