Edge Detection

Introduction

We will be detecting edges in the following image using Sobel Operator.


Sobel Operator

By using the kernel convolution we will get the edges in both X-direction and Y-directions by using their respective kernels.


Results

Edges detected in X-direction:


Edges detected in Y-direction:


Magnitude of edges in both X-direction and Y-direction: