Hello,

I have 2D matrix with greyscale image data, in particular point I have computed vector, which contains gradient in this point (via Sobel operator, it has 2 values - difference in x and in y axis), and I store this gradient vector like perpendicular vector to this gradient, so I have the vector, which says me the orientation of the edge in this point.

Now, what I want - I want to draw orientation of this edge in that particular point in my 2D image matrix like small line (for example 10 pixels) and I want to draw it in the way of this vector I have computed.

Any idea, how to do that?

Thanks for any help!