Canny edge detector: Difference between revisions

m
(Added MATLAB (built-in) example)
Line 672:
 
=={{header|J}}==
<p>TheIn imagethis issolution images are represented as a 2D arrayarrays of pixels, with first and second axes representing down and right respectively. Each Arrayprocessing step has a specific pixel representation. In the original and Gaussian-filtered images, array elements represent monochromatic intensity values as integersnumbers ranging from 0 (black) to 255 (white). In the intensity gradient image, gradient values are vectors, and are represented as complex numbers, with real and imaginary components representing down and right respectively. </p>
<p>In the intensity gradient image, fields are similarly structured. Gradient values are vectors, and are represented here as complex numbers, with real and imaginary components representing down and right respectively. </p>
<p>Detected edge and non-edge points are represented as ones and zeros respectively. An edge is a set of connected edge points (points adjacent horizontally, vertically, or diagonally are considered to be connected). In the final image, each edge is represented by assigning its set of points a common unique value. </p>
<lang J>NB. 2D convolution, filtering, ...