edge-detection-using-sobel-filter

Here use convulation with sobel filter from scratch in opencv python .

have to detect edge using sobel filter.

  • sobel x derivative kernel (detect vertical edge)
    -1 0 1
    -2 0 2
    -1 0 1
  • sobel y derivative kernel (detect horizontal edge)
    -1 -2 -1
    0 0 0
    1 2 1

input image

This is an image

output x derivative

This is an image

output y derivative

This is an image

combine of x and y derivative

This is an image

GitHub

View Github