Question: In Matlab, Write the function gradient_magnitude that takes one input: a grayscale image (a matrix, not a filename). This function should return an image (a
In Matlab, Write the function gradient_magnitude that takes one input: a grayscale image (a matrix, not a filename). This function should return an image (a matrix, not a file) of type double with the same dimensions as the input. This output contains the magnitude of the gradient. You should compute the gradient using the Sobel masks shown in figure 10.14 (both editions) using your spatial_filter function.
(Have not finished Spatial Filter function, but we can call it from the created function here).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
