Skip to content

How to apply Edge filter? #29

Answered by SHembram18
chandrakant100 asked this question in Q&A
Discussion options

You must be logged in to vote

To Implementing Edge filter on a Image:
We have to take each pixel and modifying it based on the 3 x 3 grid of pixels that surrounds that pixel.

Algorithm : Sobel Edge detection Algo

  • We have to use Sobel Operator formula ,It computes the new value of each pixel by taking weighted sum of the values for the surrounding pixels.
  • We took a pixel and formed a 3x3 square around that pixel , to compute a new value for that same pixel , by multiplying each of the surrounding pixels by different value. ( Values are shown in the below picture).
  • Compute 2 weighted sums - One for detecting edges in the x & another for y direction.
  • USe this two ( Convolutional Matrix )Gx matrix and Gy matrix
  • Gx will l…

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@chandrakant100
Comment options

chandrakant100 May 30, 2022
Maintainer Author

@H1manshu21
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@chandrakant100
Comment options

chandrakant100 May 30, 2022
Maintainer Author

Answer selected by chandrakant100
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation enhancement New feature or request help wanted Extra attention is needed question Further information is requested Important
4 participants