Detection of edges is a very important application in image processing. Taking the gradient of a two-dimensional
Question:
Detection of edges is a very important application in image processing. Taking the gradient of a two-dimensional function detects the changes the edges of an image. A filter than is commonly used in edge detection is Sobel’s filter. Consider the generation of two related impulse responses
For a given input x[m, n] the output of the Sobel is
(a) Use imread to read in the image peppers.png, and convert it into a gray image with double precision by means of the functions rgb2gray and double. Letting this image be input x[m, n] implement the Sobel filter to obtain an image y[m, n]. Determine a threshold T such that whenever y[m, n] > T we let a final image z[m, n] = 1 and zero otherwise. Display the complement of the image z[m, n].
(b) Repeat the above for the image circuit.tif, choose a threshold T so that you obtain a binarized image displaying the edges of the image.
Step by Step Answer:
Signals and Systems using MATLAB
ISBN: 978-0128142042
3rd edition
Authors: Luis Chaparro, Aydin Akan