Answered step by step
Verified Expert Solution
Question
1 Approved Answer
An edge filter will produce an image where all the edges of the input image are highlighted. This is done by looking for pixels that
An edge filter will produce an image where all the edges of the input image are highlighted. This is done by looking for pixels that have high contrasts with their surrounding neighbours. You may have guessed that we can do this using convolutions. In fact, for each pixel, we will perform two convolutions, one to look for contrast in the horizontal direction and the other for the vertical direction. This convolution does not need to be divided by the sum of kernels because we are not averaging. The result is a vector in the X and Y direction and so we want to calculate the magnitude of that vector for our final result. There are a few different kernels we can use to do this but one of the most popular is the Sobel Kernel. Below is an example of how the calculation is done. Sometimes the magnitude will be larger than and so in that case we have to cap it at and if it is less than set it to
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started