Plot Plot histogram of Sobel operator magnitude and angle in OpenCV c++?

asked 2017-09-15 03:47:53 -0600

adnan_318 gravatar image

updated 2017-09-15 04:17:27 -0600

berak gravatar image

want to plot histogram in OpenCV C++. The task is that x-axis should be angle and y-axis should be magnitude of histogram. I calculate magnitude and angle by using Sobel operator. Now how can I plot histogram by using magnitude and angle? The Image of histogram is attach I want like this result?

Thanks in advance. The simple code of problem is C:\fakepath\hist11.JPG

edit retag flag offensive close merge delete

Comments

please add the code you have, so far.

berak gravatar imageberak ( 2017-09-15 04:23:03 -0600 )edit