I want to find the direction of the stroke in text. How can the Sobel operator be used for this purpose?
This image shows dp
, which is the gradient direction. I wanted to know how I can apply the Sobel operator to find which pixel to choose, from p
to q
, along the path sp
, to find the end pixel q
on the edge.